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

Unified Diff: cc/layers/layer_impl.cc

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Stencil buffer support, --draw-layers-with-ganesh 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index aec8cd28978ae383824e7aee29b011456702a696..8945758cc24972bf224b226eb460c2934bd6f4ce 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -528,6 +528,11 @@ void LayerImpl::NoteLayerPropertyChangedForDescendants() {
children_[i]->NoteLayerPropertyChangedForSubtree();
}
+bool LayerImpl::CanDrawDirectlyToBackbuffer() const {
+ return render_target() == layer_tree_impl_->root_layer() &&
+ draw_opacity() == 1.f && !draw_opacity_is_animating();
+}
+
const char* LayerImpl::LayerTypeAsString() const {
return "Layer";
}
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698