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

Unified Diff: cc/trees/layer_tree.h

Issue 2340143002: cc: Rename LayerTreeHost to LayerTreeHostInProcess. (Closed)
Patch Set: tests + comment updates Created 4 years, 3 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/trees/layer_tree.h
diff --git a/cc/trees/layer_tree.h b/cc/trees/layer_tree.h
index 7bf43eb47b89863e91fb22ba506e4de86678005b..0ebbb527a4c15de29fedb50b72a196525debf062 100644
--- a/cc/trees/layer_tree.h
+++ b/cc/trees/layer_tree.h
@@ -33,6 +33,8 @@ class LayerUpdate;
} // namespace proto
class AnimationHost;
+class ClientPictureCache;
+class EnginePictureCache;
class HeadsUpDisplayLayer;
class Layer;
class LayerTreeHost;
@@ -148,6 +150,19 @@ class CC_EXPORT LayerTree : public MutatorHostClient {
return needs_meta_info_recomputation_;
}
+ void set_engine_picture_cache(EnginePictureCache* cache) {
+ engine_picture_cache_ = cache;
+ }
+ EnginePictureCache* engine_picture_cache() const {
+ return engine_picture_cache_;
+ }
+ void set_client_picture_cache(ClientPictureCache* cache) {
+ client_picture_cache_ = cache;
+ }
+ ClientPictureCache* client_picture_cache() const {
+ return client_picture_cache_;
+ }
+
void SetPageScaleFromImplSide(float page_scale);
void SetElasticOverscrollFromImplSide(gfx::Vector2dF elastic_overscroll);
gfx::Vector2dF elastic_overscroll() const { return elastic_overscroll_; }
@@ -285,6 +300,11 @@ class CC_EXPORT LayerTree : public MutatorHostClient {
std::unique_ptr<AnimationHost> animation_host_;
LayerTreeHost* layer_tree_host_;
+ // TODO(khushalsagar): Make these go away once we transition blimp to an
+ // external embedder.
+ EnginePictureCache* engine_picture_cache_;
+ ClientPictureCache* client_picture_cache_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTree);
};

Powered by Google App Engine
This is Rietveld 408576698