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) { |