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

Unified Diff: cc/test/remote_client_layer_factory.cc

Issue 2451913002: Add serialization/deserialization for FakePictureLayer for testing. (Closed)
Patch Set: Revert change from another CL, that I cl patch this one to that one. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/remote_client_layer_factory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_client_layer_factory.cc
diff --git a/cc/test/remote_client_layer_factory.cc b/cc/test/remote_client_layer_factory.cc
index 348cbe4c8023ffa4dc9474041765bd785c9c1e1f..cc7fd9f618ed686637822a94d108b4668aef129a 100644
--- a/cc/test/remote_client_layer_factory.cc
+++ b/cc/test/remote_client_layer_factory.cc
@@ -7,6 +7,7 @@
#include "cc/layers/layer.h"
#include "cc/layers/picture_layer.h"
#include "cc/layers/solid_color_scrollbar_layer.h"
+#include "cc/test/fake_picture_layer.h"
namespace cc {
@@ -30,6 +31,15 @@ scoped_refptr<PictureLayer> RemoteClientLayerFactory::CreatePictureLayer(
return layer;
}
+scoped_refptr<PictureLayer> RemoteClientLayerFactory::CreateFakePictureLayer(
+ int engine_layer_id,
+ ContentLayerClient* content_layer_client) {
+ scoped_refptr<PictureLayer> layer =
+ FakePictureLayer::Create(content_layer_client);
+ layer->SetLayerIdForTesting(engine_layer_id);
+ return layer;
+}
+
scoped_refptr<SolidColorScrollbarLayer>
RemoteClientLayerFactory::CreateSolidColorScrollbarLayer(
int engine_layer_id,
« no previous file with comments | « cc/test/remote_client_layer_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698