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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 11419269: cc: Give ownership of render passes to the renderer when drawing a frame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/gl_renderer_unittest.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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 virtual void commitComplete(); 151 virtual void commitComplete();
152 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime ); 152 virtual void animate(base::TimeTicks monotonicTime, base::Time wallClockTime );
153 153
154 void manageTiles(); 154 void manageTiles();
155 155
156 // Returns false if problems occured preparing the frame, and we should try 156 // Returns false if problems occured preparing the frame, and we should try
157 // to avoid displaying the frame. If prepareToDraw is called, 157 // to avoid displaying the frame. If prepareToDraw is called,
158 // didDrawAllLayers must also be called, regardless of whether drawLayers is 158 // didDrawAllLayers must also be called, regardless of whether drawLayers is
159 // called between the two. 159 // called between the two.
160 virtual bool prepareToDraw(FrameData&); 160 virtual bool prepareToDraw(FrameData&);
161 virtual void drawLayers(const FrameData&); 161 virtual void drawLayers(FrameData&);
162 // Must be called if and only if prepareToDraw was called. 162 // Must be called if and only if prepareToDraw was called.
163 void didDrawAllLayers(const FrameData&); 163 void didDrawAllLayers(const FrameData&);
164 164
165 // RendererClient implementation 165 // RendererClient implementation
166 virtual const gfx::Size& deviceViewportSize() const OVERRIDE; 166 virtual const gfx::Size& deviceViewportSize() const OVERRIDE;
167 virtual const LayerTreeSettings& settings() const OVERRIDE; 167 virtual const LayerTreeSettings& settings() const OVERRIDE;
168 virtual void didLoseContext() OVERRIDE; 168 virtual void didLoseContext() OVERRIDE;
169 virtual void onSwapBuffersComplete() OVERRIDE; 169 virtual void onSwapBuffersComplete() OVERRIDE;
170 virtual void setFullRootLayerDamage() OVERRIDE; 170 virtual void setFullRootLayerDamage() OVERRIDE;
171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE; 171 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy& policy) OVERR IDE;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 size_t m_numMainThreadScrolls; 380 size_t m_numMainThreadScrolls;
381 381
382 size_t m_cumulativeNumLayersDrawn; 382 size_t m_cumulativeNumLayersDrawn;
383 383
384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 384 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
385 }; 385 };
386 386
387 } // namespace cc 387 } // namespace cc
388 388
389 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 389 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/gl_renderer_unittest.cc ('k') | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698