Commit fc61f5a5 authored by Fady Samuel's avatar Fady Samuel Committed by Commit Bot

Add class-level comments to FrameSinkId

Bug: 854256
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: I83ff040664e008108e8265a6b21069e270dac981
Reviewed-on: https://chromium-review.googlesource.com/1128209Reviewed-by: default avatarkylechar <kylechar@chromium.org>
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#573464}
parent bbb16e9e
...@@ -16,6 +16,22 @@ ...@@ -16,6 +16,22 @@
namespace viz { namespace viz {
// A FrameSinkId uniquely identifies a CompositorFrameSink and the client that
// uses it within the Viz compositing system. FrameSinkIds are used the first
// component of a SurfaceId, which is a FrameSinkId + LocalSurfaceId, to ensure
// SurfaceIds are unique across all CompositorFrameSinks.
//
// FrameSinkId consists of:
//
// - client_id: This part uniquely identifies a client namespace, typically one
// per process.
//
// - sink_id: This part uniquely identifies a FrameSink within the client
// namespace. This component may be allocated by the client specified
// by the client_id.
//
// The FrameSinkId for a given client_id may be allocated using a
// FrameSinkIdAllocator.
class VIZ_COMMON_EXPORT FrameSinkId { class VIZ_COMMON_EXPORT FrameSinkId {
public: public:
constexpr FrameSinkId() : client_id_(0), sink_id_(0) {} constexpr FrameSinkId() : client_id_(0), sink_id_(0) {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment