| 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;
|
|
|