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

Unified Diff: android_webview/browser/surfaces_instance.h

Issue 2691363002: Centralize FrameSinkId allocation in one place (Closed)
Patch Set: android 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: android_webview/browser/surfaces_instance.h
diff --git a/android_webview/browser/surfaces_instance.h b/android_webview/browser/surfaces_instance.h
index 1ba1316bf172a1fd2e506aa5cb42a19f0aa814bf..a0f2d0419b0bbdbddcd1c79ce0b11cc57e9ae5d6 100644
--- a/android_webview/browser/surfaces_instance.h
+++ b/android_webview/browser/surfaces_instance.h
@@ -12,6 +12,7 @@
#include "cc/surfaces/compositor_frame_sink_support_client.h"
#include "cc/surfaces/display_client.h"
#include "cc/surfaces/frame_sink_id.h"
+#include "cc/surfaces/frame_sink_id_allocator.h"
#include "cc/surfaces/surface_id.h"
namespace cc {
@@ -71,7 +72,7 @@ class SurfacesInstance : public base::RefCounted<SurfacesInstance>,
void SetEmptyRootFrame();
- uint32_t next_client_id_;
+ cc::FrameSinkIdAllocator frame_sink_id_allocator_;
cc::FrameSinkId frame_sink_id_;
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | android_webview/browser/surfaces_instance.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698