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

Unified Diff: cc/blimp/layer_tree_host_remote.h

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Fix test 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
Index: cc/blimp/layer_tree_host_remote.h
diff --git a/cc/blimp/layer_tree_host_remote.h b/cc/blimp/layer_tree_host_remote.h
index d6ec317cb743d98943cb5216a2e6b602ee9a8a81..e42a5256b52cb0bbf7ce0a362e2a20521428205b 100644
--- a/cc/blimp/layer_tree_host_remote.h
+++ b/cc/blimp/layer_tree_host_remote.h
@@ -25,6 +25,8 @@ class LayerTreeHost;
} // namespace proto
class AnimationHost;
+class EnginePictureCache;
+class ImageSerializationProcessor;
class RemoteCompositorBridge;
class LayerTreeHostClient;
@@ -36,6 +38,7 @@ class CC_EXPORT LayerTreeHostRemote : public LayerTreeHost,
scoped_refptr<base::SingleThreadTaskRunner> main_task_runner;
std::unique_ptr<AnimationHost> animation_host;
std::unique_ptr<RemoteCompositorBridge> remote_compositor_bridge;
+ std::unique_ptr<EnginePictureCache> engine_picture_cache;
LayerTreeSettings const* settings = nullptr;
InitParams();
@@ -138,6 +141,11 @@ class CC_EXPORT LayerTreeHostRemote : public LayerTreeHost,
// The RemoteCompositorBridge used to submit frame updates to the client.
std::unique_ptr<RemoteCompositorBridge> remote_compositor_bridge_;
+ // Used to cache SkPictures sent with DisplayLists to the client.
+ // TODO(khushalsagar): Restructure to give this with the CompositorProtoState
+ // and eliminate this abstraction. See crbug.com/648442.
+ std::unique_ptr<EnginePictureCache> engine_picture_cache_;
+
LayerTreeSettings settings_;
LayerTreeDebugState debug_state_;

Powered by Google App Engine
This is Rietveld 408576698