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

Unified Diff: cc/layer.cc

Issue 11618032: Merge 174073 (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1364/src/
Patch Set: Created 8 years 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/layer.h ('k') | cc/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer.cc
===================================================================
--- cc/layer.cc (revision 174074)
+++ cc/layer.cc (working copy)
@@ -30,6 +30,7 @@
: m_needsDisplay(false)
, m_stackingOrderChanged(false)
, m_layerId(s_nextLayerId++)
+ , m_ignoreSetNeedsCommit(false)
, m_parent(0)
, m_layerTreeHost(0)
, m_layerAnimationController(LayerAnimationController::create(this))
@@ -99,6 +100,8 @@
void Layer::setNeedsCommit()
{
+ if (m_ignoreSetNeedsCommit)
+ return;
if (m_layerTreeHost)
m_layerTreeHost->setNeedsCommit();
}
@@ -654,7 +657,8 @@
return;
m_rasterScale = scale;
- if (!m_automaticallyComputeRasterScale)
+ // When automatically computed, this acts like a draw property.
+ if (m_automaticallyComputeRasterScale)
return;
setNeedsDisplay();
}
« no previous file with comments | « cc/layer.h ('k') | cc/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698