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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12518026: cc: Add layer-based pixel tests. (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/gl_renderer_pixeltest.cc ('k') | cc/layer_tree_host_pixeltest_filters.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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 void FinishAllRendering(); 181 void FinishAllRendering();
182 int SourceAnimationFrameNumber() const; 182 int SourceAnimationFrameNumber() const;
183 183
184 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface); 184 virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
185 bool IsContextLost(); 185 bool IsContextLost();
186 TileManager* tile_manager() { return tile_manager_.get(); } 186 TileManager* tile_manager() { return tile_manager_.get(); }
187 Renderer* renderer() { return renderer_.get(); } 187 Renderer* renderer() { return renderer_.get(); }
188 const RendererCapabilities& GetRendererCapabilities() const; 188 const RendererCapabilities& GetRendererCapabilities() const;
189 189
190 bool SwapBuffers(); 190 virtual bool SwapBuffers();
191 191
192 void Readback(void* pixels, gfx::Rect rect_in_device_viewport); 192 void Readback(void* pixels, gfx::Rect rect_in_device_viewport);
193 193
194 LayerTreeImpl* active_tree() { return active_tree_.get(); } 194 LayerTreeImpl* active_tree() { return active_tree_.get(); }
195 const LayerTreeImpl* active_tree() const { return active_tree_.get(); } 195 const LayerTreeImpl* active_tree() const { return active_tree_.get(); }
196 LayerTreeImpl* pending_tree() { return pending_tree_.get(); } 196 LayerTreeImpl* pending_tree() { return pending_tree_.get(); }
197 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); } 197 const LayerTreeImpl* pending_tree() const { return pending_tree_.get(); }
198 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); } 198 const LayerTreeImpl* recycle_tree() const { return recycle_tree_.get(); }
199 void CreatePendingTree(); 199 void CreatePendingTree();
200 void CheckForCompletedTileUploads(); 200 void CheckForCompletedTileUploads();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 base::TimeTicks current_frame_time_; 437 base::TimeTicks current_frame_time_;
438 438
439 scoped_ptr<AnimationRegistrar> animation_registrar_; 439 scoped_ptr<AnimationRegistrar> animation_registrar_;
440 440
441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 441 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
442 }; 442 };
443 443
444 } // namespace cc 444 } // namespace cc
445 445
446 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 446 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/gl_renderer_pixeltest.cc ('k') | cc/layer_tree_host_pixeltest_filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698