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

Unified Diff: cc/blimp/layer_tree_host_remote_unittest.cc

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Addressed comments 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/blimp/layer_tree_host_remote.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blimp/layer_tree_host_remote_unittest.cc
diff --git a/cc/blimp/layer_tree_host_remote_unittest.cc b/cc/blimp/layer_tree_host_remote_unittest.cc
index 845bd11e67c4f434fd5b9d0d5a56e909b2b42926..03cdc74e57ce854c5ab5401ccf52d984ca99bbd8 100644
--- a/cc/blimp/layer_tree_host_remote_unittest.cc
+++ b/cc/blimp/layer_tree_host_remote_unittest.cc
@@ -10,6 +10,7 @@
#include "cc/animation/animation_host.h"
#include "cc/layers/layer.h"
#include "cc/output/begin_frame_args.h"
+#include "cc/test/fake_image_serialization_processor.h"
#include "cc/test/fake_remote_compositor_bridge.h"
#include "cc/test/stub_layer_tree_host_client.h"
#include "cc/trees/layer_tree_settings.h"
@@ -146,6 +147,8 @@ class LayerTreeHostRemoteTest : public testing::Test {
main_task_runner);
remote_compositor_bridge_ = remote_compositor_bridge.get();
params.remote_compositor_bridge = std::move(remote_compositor_bridge);
+ params.engine_picture_cache =
+ image_serialization_processor_.CreateEnginePictureCache();
LayerTreeSettings settings;
params.settings = &settings;
@@ -186,6 +189,7 @@ class LayerTreeHostRemoteTest : public testing::Test {
StrictMock<MockLayerTreeHostClient> mock_layer_tree_host_client_;
UpdateTrackingRemoteCompositorBridge* remote_compositor_bridge_ = nullptr;
scoped_refptr<MockLayer> root_layer_;
+ FakeImageSerializationProcessor image_serialization_processor_;
bool needs_animate_during_main_frame_ = false;
bool needs_commit_during_main_frame_ = false;
« no previous file with comments | « cc/blimp/layer_tree_host_remote.cc ('k') | cc/layers/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698