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

Unified Diff: content/browser/renderer_host/context_provider_factory_impl_android.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/renderer_host/context_provider_factory_impl_android.h
diff --git a/content/browser/renderer_host/context_provider_factory_impl_android.h b/content/browser/renderer_host/context_provider_factory_impl_android.h
index 79a529b91e204046a2263ce427d332cc5832ac83..751cd42019c5c8e0e937fc28b0af09ebeae3a18c 100644
--- a/content/browser/renderer_host/context_provider_factory_impl_android.h
+++ b/content/browser/renderer_host/context_provider_factory_impl_android.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/timer/timer.h"
+#include "cc/surfaces/frame_sink_id_allocator.h"
#include "content/common/content_export.h"
#include "gpu/command_buffer/client/shared_memory_limits.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
@@ -104,7 +105,7 @@ class CONTENT_EXPORT ContextProviderFactoryImpl
base::OneShotTimer establish_gpu_channel_timeout_;
std::unique_ptr<cc::SurfaceManager> surface_manager_;
- uint32_t next_sink_id_;
+ cc::FrameSinkIdAllocator frame_sink_id_allocator_;
base::WeakPtrFactory<ContextProviderFactoryImpl> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698