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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 2017263002: cc: Move copy requests from layers to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 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
« no previous file with comments | « cc/layers/render_surface_impl.h ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.cc
diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc
index ed036f3933ea188c7d371e2f5244c6d9ef2f1809..57c2d908dcde9d85991faa98b15e149845c5dea6 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -129,6 +129,13 @@ const LayerImpl* RenderSurfaceImpl::ReplicaLayer() const {
return owning_layer_->replica_layer();
}
+bool RenderSurfaceImpl::HasCopyRequest() const {
+ return owning_layer_->layer_tree_impl()
+ ->property_trees()
+ ->effect_tree.Node(EffectTreeIndex())
+ ->data.has_copy_request;
+}
+
int RenderSurfaceImpl::TransformTreeIndex() const {
return owning_layer_->transform_tree_index();
}
@@ -162,8 +169,7 @@ void RenderSurfaceImpl::SetContentRectForTesting(const gfx::Rect& rect) {
}
gfx::Rect RenderSurfaceImpl::CalculateClippedAccumulatedContentRect() {
- if (owning_layer_->replica_layer() || owning_layer_->HasCopyRequest() ||
- !is_clipped())
+ if (owning_layer_->replica_layer() || HasCopyRequest() || !is_clipped())
return accumulated_content_rect();
if (accumulated_content_rect().IsEmpty())
« no previous file with comments | « cc/layers/render_surface_impl.h ('k') | cc/test/fake_layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698