summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_layer_tree_host.h
diff options
context:
space:
mode:
authornyquist <nyquist@chromium.org>2016-02-11 16:15:04 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-12 00:16:29 +0000
commit16febb404edc59fb8dbb13a13c68ccecfb5a0bf1 (patch)
tree882135af7b509fdc7ccebb66193039c421871711 /cc/test/fake_layer_tree_host.h
parent23258d3c881e5c053f7bb687a13f860ea55364ef (diff)
downloadchromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.zip
chromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.tar.gz
chromium_src-16febb404edc59fb8dbb13a13c68ccecfb5a0bf1.tar.bz2
Add framework for (de)serialization of images in SkPicture
This CL adds Plumbing for picture serialization and deserialization from //blimp to DrawingDisplayItem. BUG=577262 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1675763002 Cr-Commit-Position: refs/heads/master@{#375053}
Diffstat (limited to 'cc/test/fake_layer_tree_host.h')
-rw-r--r--cc/test/fake_layer_tree_host.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/cc/test/fake_layer_tree_host.h b/cc/test/fake_layer_tree_host.h
index b0b9cde..11fe0d2 100644
--- a/cc/test/fake_layer_tree_host.h
+++ b/cc/test/fake_layer_tree_host.h
@@ -15,6 +15,7 @@
#include "cc/trees/tree_synchronizer.h"
namespace cc {
+class ImageSerializationProcessor;
class TestTaskGraphRunner;
class FakeLayerTreeHost : public LayerTreeHost {
@@ -31,7 +32,18 @@ class FakeLayerTreeHost : public LayerTreeHost {
TestTaskGraphRunner* task_graph_runner,
const LayerTreeSettings& settings,
CompositorMode mode);
-
+ static scoped_ptr<FakeLayerTreeHost> Create(
+ FakeLayerTreeHostClient* client,
+ TestTaskGraphRunner* task_graph_runner,
+ const LayerTreeSettings& settings,
+ CompositorMode mode,
+ InitParams params);
+ static scoped_ptr<FakeLayerTreeHost> Create(
+ FakeLayerTreeHostClient* client,
+ TestTaskGraphRunner* task_graph_runner,
+ const LayerTreeSettings& settings,
+ CompositorMode mode,
+ ImageSerializationProcessor* image_serialization_processor);
~FakeLayerTreeHost() override;
const RendererCapabilities& GetRendererCapabilities() const override;