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

Side by Side Diff: components/mus/vm/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: Add surface_id to SurfaceFactoryClient::SetBeginFrameSource 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_MUS_VM_SERVER_VIEW_H_ 5 #ifndef COMPONENTS_MUS_VM_SERVER_VIEW_H_
6 #define COMPONENTS_MUS_VM_SERVER_VIEW_H_ 6 #define COMPONENTS_MUS_VM_SERVER_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #if !defined(NDEBUG) 116 #if !defined(NDEBUG)
117 std::string GetDebugWindowHierarchy() const; 117 std::string GetDebugWindowHierarchy() const;
118 void BuildDebugInfo(const std::string& depth, std::string* result) const; 118 void BuildDebugInfo(const std::string& depth, std::string* result) const;
119 #endif 119 #endif
120 120
121 private: 121 private:
122 typedef std::vector<ServerView*> Views; 122 typedef std::vector<ServerView*> Views;
123 123
124 // SurfaceFactoryClient implementation. 124 // SurfaceFactoryClient implementation.
125 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 125 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
126 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
126 127
127 // Implementation of removing a view. Doesn't send any notification. 128 // Implementation of removing a view. Doesn't send any notification.
128 void RemoveImpl(ServerView* view); 129 void RemoveImpl(ServerView* view);
129 130
130 ServerViewDelegate* delegate_; 131 ServerViewDelegate* delegate_;
131 const ViewId id_; 132 const ViewId id_;
132 ServerView* parent_; 133 ServerView* parent_;
133 Views children_; 134 Views children_;
134 bool visible_; 135 bool visible_;
135 gfx::Rect bounds_; 136 gfx::Rect bounds_;
(...skipping 10 matching lines...) Expand all
146 base::ObserverList<ServerViewObserver> observers_; 147 base::ObserverList<ServerViewObserver> observers_;
147 mojo::SurfaceClientPtr client_; 148 mojo::SurfaceClientPtr client_;
148 mojo::Binding<Surface> binding_; 149 mojo::Binding<Surface> binding_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(ServerView); 151 DISALLOW_COPY_AND_ASSIGN(ServerView);
151 }; 152 };
152 153
153 } // namespace mus 154 } // namespace mus
154 155
155 #endif // COMPONENTS_MUS_VM_SERVER_VIEW_H_ 156 #endif // COMPONENTS_MUS_VM_SERVER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698