Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 2691363002: Centralize FrameSinkId allocation in one place (Closed)
Patch Set: fix based on comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/compositor/gpu_process_transport_factory.h
diff --git a/content/browser/compositor/gpu_process_transport_factory.h b/content/browser/compositor/gpu_process_transport_factory.h
index 4024c07bde11ce9aeb8fb7773e345053eb310627..a7f646bc95fce21238f358574acefd29272bd0ac 100644
--- a/content/browser/compositor/gpu_process_transport_factory.h
+++ b/content/browser/compositor/gpu_process_transport_factory.h
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "build/build_config.h"
+#include "cc/surfaces/frame_sink_id_allocator.h"
#include "content/browser/compositor/image_transport_factory.h"
#include "gpu/ipc/client/gpu_channel_host.h"
#include "ui/compositor/compositor.h"
@@ -103,7 +104,7 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
SharedVulkanContextProvider();
std::unique_ptr<cc::SurfaceManager> surface_manager_;
- uint32_t next_sink_id_ = 1u;
+ cc::FrameSinkIdAllocator frame_sink_id_allocator_;
#if defined(OS_WIN)
// Used by output surface, stored in PerCompositorData.

Powered by Google App Engine
This is Rietveld 408576698