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

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 14772021: cc::OutputSurfaceClient::InitializeForGL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win compile by including ContextProvider from output_surface_client.h Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.cc
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc
index 576c8660d35790db2df2a3fb718aac1c04972115..4b30bd7a9d98abddc4dba1005d3dcc646b395f4e 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -10,14 +10,15 @@ FakePictureLayerImpl::FakePictureLayerImpl(
LayerTreeImpl* tree_impl,
int id,
scoped_refptr<PicturePileImpl> pile)
- : PictureLayerImpl(tree_impl, id) {
+ : PictureLayerImpl(tree_impl, id),
+ append_quads_count_(0) {
pile_ = pile;
SetBounds(pile_->size());
CreateTilingSet();
}
FakePictureLayerImpl::FakePictureLayerImpl(LayerTreeImpl* tree_impl, int id)
- : PictureLayerImpl(tree_impl, id) {}
+ : PictureLayerImpl(tree_impl, id), append_quads_count_(0) {}
scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
LayerTreeImpl* tree_impl) {
@@ -25,6 +26,12 @@ scoped_ptr<LayerImpl> FakePictureLayerImpl::CreateLayerImpl(
new FakePictureLayerImpl(tree_impl, id())).PassAs<LayerImpl>();
}
+void FakePictureLayerImpl::AppendQuads(QuadSink* quad_sink,
+ AppendQuadsData* append_quads_data) {
+ PictureLayerImpl::AppendQuads(quad_sink, append_quads_data);
+ ++append_quads_count_;
+}
+
gfx::Size FakePictureLayerImpl::CalculateTileSize(gfx::Size content_bounds) {
if (fixed_tile_size_.IsEmpty()) {
return PictureLayerImpl::CalculateTileSize(content_bounds);
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | cc/test/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698