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

Unified Diff: services/view_manager/display_manager.h

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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: services/view_manager/display_manager.h
diff --git a/services/view_manager/display_manager.h b/services/view_manager/display_manager.h
index 6a36ca2d3c4c8ec09dc5a5424588fad8ccef0fb7..482b0c1594aba5c3d57e5deeff3ea5b4245bab92 100644
--- a/services/view_manager/display_manager.h
+++ b/services/view_manager/display_manager.h
@@ -67,8 +67,6 @@ class DefaultDisplayManager : public DisplayManager,
private:
void OnCreatedNativeViewport(uint64_t native_viewport_id);
- void OnSurfaceConnectionCreated(mojo::SurfacePtr surface,
- uint32_t id_namespace);
void Draw();
// NativeViewportClient:
@@ -87,10 +85,9 @@ class DefaultDisplayManager : public DisplayManager,
gfx::Rect dirty_rect_;
base::Timer draw_timer_;
- mojo::SurfacesServicePtr surfaces_service_;
mojo::SurfacePtr surface_;
- scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
- cc::SurfaceId surface_id_;
+ uint32_t id_namespace_;
+ uint32_t local_id_;
sky 2015/01/13 18:14:27 Since local_id_ is only has two values, it seems l
jamesr 2015/01/14 01:50:30 Hmm, yeah that'd be better. Added surface_allocat
mojo::NativeViewportPtr native_viewport_;
mojo::Callback<void()> native_viewport_closed_callback_;
base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698