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

Unified Diff: android_webview/browser/surfaces_instance.h

Issue 2691363002: Centralize FrameSinkId allocation in one place (Closed)
Patch Set: explicit 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
« no previous file with comments | « no previous file | android_webview/browser/surfaces_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/surfaces_instance.h
diff --git a/android_webview/browser/surfaces_instance.h b/android_webview/browser/surfaces_instance.h
index ab5cf1a4683e169fb5df7153c7e53b8c29bf7922..0eaf98555ac53ea7e0b3301f651ed27aecd46859 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 {
@@ -72,7 +73,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698