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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Merge master + s/scoped_ptr/unique_ptr/ Created 4 years, 8 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/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 8cca3e989fc68b4c6deed9e91d4f7658300cc651..cb4849965f6533afe1eca3eb1e6eb01d361fe30d 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -13,8 +13,11 @@
#include <unordered_map>
#include <vector>
+#include "base/callback.h"
#include "base/macros.h"
#include "base/time/time.h"
+#include "cc/animation/animation_registrar.h"
+#include "cc/animation/layer_tree_mutator.h"
#include "cc/base/cc_export.h"
#include "cc/base/synced_property.h"
#include "cc/debug/frame_timing_tracker.h"
@@ -79,6 +82,8 @@ class UIResourceRequest;
struct ScrollAndScaleSet;
class Viewport;
+using BeginFrameCallbackList = std::vector<base::Closure>;
+
enum class GpuRasterizationStatus {
ON,
ON_FORCED,
@@ -462,6 +467,8 @@ class CC_EXPORT LayerTreeHostImpl
const gfx::Transform& DrawTransform() const;
+ std::unique_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations();
+
std::unique_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
void set_max_memory_needed_bytes(size_t bytes) {
@@ -628,6 +635,9 @@ class CC_EXPORT LayerTreeHostImpl
bool ScrollAnimationCreate(ScrollNode* scroll_node,
const gfx::Vector2dF& scroll_amount);
+ void SetLayerTreeMutator(LayerTreeMutator* mutator);
+ LayerTreeMutator* mutator() { return mutator_; }
+
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,
@@ -858,6 +868,8 @@ class CC_EXPORT LayerTreeHostImpl
std::unique_ptr<Viewport> viewport_;
+ LayerTreeMutator* mutator_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698