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

Side by Side Diff: components/view_manager/server_view.h

Issue 1304063014: cc: Plumbing for BeginFrameSource based on Surfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SurfaceAggregator tests; fix some bugs revealed by tests Created 5 years, 2 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 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 COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_
6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ 6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #if !defined(NDEBUG) 127 #if !defined(NDEBUG)
128 std::string GetDebugWindowHierarchy() const; 128 std::string GetDebugWindowHierarchy() const;
129 void BuildDebugInfo(const std::string& depth, std::string* result) const; 129 void BuildDebugInfo(const std::string& depth, std::string* result) const;
130 #endif 130 #endif
131 131
132 private: 132 private:
133 typedef std::vector<ServerView*> Views; 133 typedef std::vector<ServerView*> Views;
134 134
135 // SurfaceFactoryClient implementation. 135 // SurfaceFactoryClient implementation.
136 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 136 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
137 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
137 138
138 // Implementation of removing a view. Doesn't send any notification. 139 // Implementation of removing a view. Doesn't send any notification.
139 void RemoveImpl(ServerView* view); 140 void RemoveImpl(ServerView* view);
140 141
141 ServerViewDelegate* delegate_; 142 ServerViewDelegate* delegate_;
142 const ViewId id_; 143 const ViewId id_;
143 ServerView* parent_; 144 ServerView* parent_;
144 Views children_; 145 Views children_;
145 bool visible_; 146 bool visible_;
146 gfx::Rect bounds_; 147 gfx::Rect bounds_;
(...skipping 11 matching lines...) Expand all
158 base::ObserverList<ServerViewObserver> observers_; 159 base::ObserverList<ServerViewObserver> observers_;
159 mojo::SurfaceClientPtr client_; 160 mojo::SurfaceClientPtr client_;
160 mojo::Binding<Surface> binding_; 161 mojo::Binding<Surface> binding_;
161 162
162 DISALLOW_COPY_AND_ASSIGN(ServerView); 163 DISALLOW_COPY_AND_ASSIGN(ServerView);
163 }; 164 };
164 165
165 } // namespace view_manager 166 } // namespace view_manager
166 167
167 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_ 168 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698