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

Unified Diff: cc/layer.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved needing to kick a frame logic up to RWHVA from Compositor. Created 8 years, 2 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
Index: cc/layer.cc
diff --git a/cc/layer.cc b/cc/layer.cc
index 7c4adf92c7b363973f23869ad2bb7afa473fbf1d..9789c3c1f967e6c59de952bc4b3b688372fbe43a 100644
--- a/cc/layer.cc
+++ b/cc/layer.cc
@@ -12,6 +12,7 @@
#include "CCLayerImpl.h"
#include "CCLayerTreeHost.h"
#include "CCSettings.h"
+#include "TraceEvent.h"
#include <public/WebAnimationDelegate.h>
#include <public/WebLayerScrollClient.h>
#include <public/WebSize.h>
@@ -66,6 +67,7 @@ LayerChromium::LayerChromium()
, m_boundsContainPageScale(false)
, m_layerAnimationDelegate(0)
, m_layerScrollClient(0)
+ , m_deferUpdates(false)
{
if (m_layerId < 0) {
s_nextLayerId = 1;
@@ -784,6 +786,25 @@ Region LayerChromium::visibleContentOpaqueRegion() const
return Region();
}
+void LayerChromium::setDeferUpdates(bool deferUpdates)
+{
+ if (m_deferUpdates == deferUpdates)
+ return;
+ m_deferUpdates = deferUpdates;
+
+ if (deferUpdates)
+ TRACE_EVENT_ASYNC_BEGIN0("cc", "LayerChromium::setDeferUpdates", this);
+ else {
+ TRACE_EVENT_ASYNC_END0("cc", "LayerChromium::setDeferUpdates", this);
+ setNeedsCommit();
+ }
+}
+
+bool LayerChromium::deferUpdates()
+{
+ return m_deferUpdates;
+}
+
ScrollbarLayerChromium* LayerChromium::toScrollbarLayerChromium()
{
return 0;

Powered by Google App Engine
This is Rietveld 408576698