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

Side by Side Diff: cc/trees/layer_tree_host_common.cc

Issue 14060015: cc: Async readback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_common.h" 5 #include "cc/trees/layer_tree_host_common.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/base/math_util.h" 10 #include "cc/base/math_util.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // 289 //
290 290
291 // The root layer should always have a render_surface. 291 // The root layer should always have a render_surface.
292 if (IsRootLayer(layer)) 292 if (IsRootLayer(layer))
293 return true; 293 return true;
294 294
295 // If we force it. 295 // If we force it.
296 if (layer->force_render_surface()) 296 if (layer->force_render_surface())
297 return true; 297 return true;
298 298
299 // If we'll make a copy of the layer's contents.
300 if (layer->HasRequestCopyCallback())
301 return true;
302
299 // If the layer uses a mask. 303 // If the layer uses a mask.
300 if (layer->mask_layer()) 304 if (layer->mask_layer())
301 return true; 305 return true;
302 306
303 // If the layer has a reflection. 307 // If the layer has a reflection.
304 if (layer->replica_layer()) 308 if (layer->replica_layer())
305 return true; 309 return true;
306 310
307 // If the layer uses a CSS filter. 311 // If the layer uses a CSS filter.
308 if (!layer->filters().isEmpty() || !layer->background_filters().isEmpty() || 312 if (!layer->filters().isEmpty() || !layer->background_filters().isEmpty() ||
(...skipping 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 // At this point, we think the point does hit the touch event handler region 1718 // At this point, we think the point does hit the touch event handler region
1715 // on the layer, but we need to walk up the parents to ensure that the layer 1719 // on the layer, but we need to walk up the parents to ensure that the layer
1716 // was not clipped in such a way that the hit point actually should not hit 1720 // was not clipped in such a way that the hit point actually should not hit
1717 // the layer. 1721 // the layer.
1718 if (PointIsClippedBySurfaceOrClipRect(screen_space_point, layer_impl)) 1722 if (PointIsClippedBySurfaceOrClipRect(screen_space_point, layer_impl))
1719 return false; 1723 return false;
1720 1724
1721 return true; 1725 return true;
1722 } 1726 }
1723 } // namespace cc 1727 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698