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

Unified Diff: cc/blimp/layer_tree_host_remote.h

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_factory.h ('k') | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b27f566e45467704d5237e81e3732b4a44057e3c..72b03a3342094f2048b690b018fcc1d024cefabc 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_;
« no previous file with comments | « cc/blimp/layer_factory.h ('k') | cc/blimp/layer_tree_host_remote.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698