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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments from vmpstr, including adding //cc/blimp Created 4 years, 6 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/test/skia_common.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 545fbb05fc6bc892e20d0cea9f0c836e86d4d772..7581ff2cac9f128d6f45f4188f076f741ceea9a5 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -22,6 +22,8 @@
#include "base/time/time.h"
#include "cc/animation/target_property.h"
#include "cc/base/cc_export.h"
+#include "cc/blimp/client_picture_cache.h"
+#include "cc/blimp/engine_picture_cache.h"
#include "cc/debug/micro_benchmark.h"
#include "cc/debug/micro_benchmark_controller.h"
#include "cc/input/event_listener_properties.h"
@@ -426,6 +428,14 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
return image_serialization_processor_;
}
+ EnginePictureCache* engine_picture_cache() const {
+ return engine_picture_cache_ ? engine_picture_cache_.get() : nullptr;
+ }
+
+ ClientPictureCache* client_picture_cache() const {
+ return client_picture_cache_ ? client_picture_cache_.get() : nullptr;
+ }
+
protected:
LayerTreeHost(InitParams* params, CompositorMode mode);
void InitializeThreaded(
@@ -447,6 +457,7 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
std::unique_ptr<TaskRunnerProvider> task_runner_provider,
std::unique_ptr<Proxy> proxy_for_testing,
std::unique_ptr<BeginFrameSource> external_begin_frame_source);
+ void InitializePictureCacheForTesting();
void SetOutputSurfaceLostForTesting(bool is_lost) {
output_surface_lost_ = is_lost;
}
@@ -580,6 +591,8 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
TaskGraphRunner* task_graph_runner_;
ImageSerializationProcessor* image_serialization_processor_;
+ std::unique_ptr<EnginePictureCache> engine_picture_cache_;
+ std::unique_ptr<ClientPictureCache> client_picture_cache_;
std::vector<std::unique_ptr<SwapPromise>> swap_promise_list_;
std::set<SwapPromiseMonitor*> swap_promise_monitor_;
« no previous file with comments | « cc/test/skia_common.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698