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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp

Issue 2866733002: Remove owning_id from EffectNode and replace it by an opaque stable_id (Closed)
Patch Set: none Created 3 years, 7 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: third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
index 562fed855018528b7c7603680e5d6b6d45869dd7..c641d79f696702ceabf8bbde73f96b023dc8675e 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp
@@ -5,7 +5,9 @@
#include "platform/graphics/CompositorMutableState.h"
#include "cc/layers/layer_impl.h"
+#include "cc/trees/effect_node.h"
#include "cc/trees/layer_tree_impl.h"
+#include "cc/trees/property_tree.h"
#include "platform/graphics/CompositorMutation.h"
namespace blink {
@@ -17,7 +19,10 @@ CompositorMutableState::CompositorMutableState(CompositorMutation* mutation,
CompositorMutableState::~CompositorMutableState() {}
double CompositorMutableState::Opacity() const {
- return main_layer_->Opacity();
+ return main_layer_->layer_tree_impl()
+ ->property_trees()
+ ->effect_tree.Node(main_layer_->effect_tree_index())
+ ->opacity;
}
void CompositorMutableState::SetOpacity(double opacity) {

Powered by Google App Engine
This is Rietveld 408576698