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

Side by Side Diff: services/view_manager/display_manager.h

Issue 807733002: Split surface id and simplify connecting to surfaces service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 5 #ifndef SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
6 #define SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 6 #define SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void OnCreatedNativeViewport(uint64_t native_viewport_id); 65 void OnCreatedNativeViewport(uint64_t native_viewport_id);
66 void OnSurfaceConnectionCreated(mojo::SurfacePtr surface, 66 void OnSurfaceConnectionCreated(mojo::SurfacePtr surface,
67 uint32_t id_namespace); 67 uint32_t id_namespace);
68 void Draw(); 68 void Draw();
69 69
70 // NativeViewportClient: 70 // NativeViewportClient:
71 void OnDestroyed() override; 71 void OnDestroyed() override;
72 void OnSizeChanged(mojo::SizePtr size) override; 72 void OnSizeChanged(mojo::SizePtr size) override;
73 73
74 // SurfaceClient: 74 // SurfaceClient:
75 void SetIdNamespace(uint32_t id_namespace) override;
75 void ReturnResources( 76 void ReturnResources(
76 mojo::Array<mojo::ReturnedResourcePtr> resources) override; 77 mojo::Array<mojo::ReturnedResourcePtr> resources) override;
77 78
78 mojo::ApplicationConnection* app_connection_; 79 mojo::ApplicationConnection* app_connection_;
79 ConnectionManager* connection_manager_; 80 ConnectionManager* connection_manager_;
80 81
81 gfx::Size size_; 82 gfx::Size size_;
82 gfx::Rect dirty_rect_; 83 gfx::Rect dirty_rect_;
83 base::Timer draw_timer_; 84 base::Timer draw_timer_;
84 85
85 mojo::SurfacesServicePtr surfaces_service_; 86 mojo::SurfacesServicePtr surfaces_service_;
86 mojo::SurfacePtr surface_; 87 mojo::SurfacePtr surface_;
87 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_; 88 scoped_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
88 cc::SurfaceId surface_id_; 89 cc::SurfaceId surface_id_;
89 mojo::NativeViewportPtr native_viewport_; 90 mojo::NativeViewportPtr native_viewport_;
90 mojo::Callback<void()> native_viewport_closed_callback_; 91 mojo::Callback<void()> native_viewport_closed_callback_;
91 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_; 92 base::WeakPtrFactory<DefaultDisplayManager> weak_factory_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager); 94 DISALLOW_COPY_AND_ASSIGN(DefaultDisplayManager);
94 }; 95 };
95 96
96 } // namespace view_manager 97 } // namespace view_manager
97 98
98 #endif // SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_ 99 #endif // SERVICES_VIEW_MANAGER_DISPLAY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698