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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12328118: cc: DelegatedRendererLayer creates a ChildId with the ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Implementation 149 // Implementation
150 bool canDraw(); 150 bool canDraw();
151 OutputSurface* outputSurface() const; 151 OutputSurface* outputSurface() const;
152 152
153 std::string layerTreeAsText() const; 153 std::string layerTreeAsText() const;
154 std::string layerTreeAsJson() const; 154 std::string layerTreeAsJson() const;
155 155
156 void finishAllRendering(); 156 void finishAllRendering();
157 int sourceAnimationFrameNumber() const; 157 int sourceAnimationFrameNumber() const;
158 158
159 bool initializeRenderer(scoped_ptr<OutputSurface>); 159 virtual bool initializeRenderer(scoped_ptr<OutputSurface>);
160 bool isContextLost(); 160 bool isContextLost();
161 TileManager* tileManager() { return m_tileManager.get(); } 161 TileManager* tileManager() { return m_tileManager.get(); }
162 Renderer* renderer() { return m_renderer.get(); } 162 Renderer* renderer() { return m_renderer.get(); }
163 const RendererCapabilities& rendererCapabilities() const; 163 const RendererCapabilities& rendererCapabilities() const;
164 164
165 bool swapBuffers(); 165 bool swapBuffers();
166 166
167 void readback(void* pixels, const gfx::Rect&); 167 void readback(void* pixels, const gfx::Rect&);
168 168
169 LayerTreeImpl* activeTree() { return m_activeTree.get(); } 169 LayerTreeImpl* activeTree() { return m_activeTree.get(); }
170 const LayerTreeImpl* activeTree() const { return m_activeTree.get(); } 170 const LayerTreeImpl* activeTree() const { return m_activeTree.get(); }
171 LayerTreeImpl* pendingTree() { return m_pendingTree.get(); } 171 LayerTreeImpl* pendingTree() { return m_pendingTree.get(); }
172 const LayerTreeImpl* pendingTree() const { return m_pendingTree.get(); } 172 const LayerTreeImpl* pendingTree() const { return m_pendingTree.get(); }
173 const LayerTreeImpl* recycleTree() const { return m_recycleTree.get(); } 173 const LayerTreeImpl* recycleTree() const { return m_recycleTree.get(); }
174 void createPendingTree(); 174 void createPendingTree();
175 void checkForCompletedTileUploads(); 175 void checkForCompletedTileUploads();
176 virtual void activatePendingTreeIfNeeded(); 176 virtual bool activatePendingTreeIfNeeded();
177 177
178 // Shortcuts to layers on the active tree. 178 // Shortcuts to layers on the active tree.
179 LayerImpl* rootLayer() const; 179 LayerImpl* rootLayer() const;
180 LayerImpl* rootScrollLayer() const; 180 LayerImpl* rootScrollLayer() const;
181 LayerImpl* currentlyScrollingLayer() const; 181 LayerImpl* currentlyScrollingLayer() const;
182 182
183 bool visible() const { return m_visible; } 183 bool visible() const { return m_visible; }
184 void setVisible(bool); 184 void setVisible(bool);
185 185
186 size_t memoryAllocationLimitBytes() const { return m_managedMemoryPolicy.byt esLimitWhenVisible; } 186 size_t memoryAllocationLimitBytes() const { return m_managedMemoryPolicy.byt esLimitWhenVisible; }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 base::TimeTicks m_currentFrameTime; 367 base::TimeTicks m_currentFrameTime;
368 368
369 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 369 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
370 370
371 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 371 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
372 }; 372 };
373 373
374 } // namespace cc 374 } // namespace cc
375 375
376 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 376 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/delegated_renderer_layer_impl.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698