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

Unified Diff: cc/content_layer.cc

Issue 11644036: cc: Don't let invalidations that we're going to handle immediately cause an extra commit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ignoreSetNeedsCommit 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 | « no previous file | cc/layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/content_layer.cc
diff --git a/cc/content_layer.cc b/cc/content_layer.cc
index 20c95561c79b685782b7b66b2fa975493fd37a55..df6ae8826d44399d2cf270bb6e6d0d41b5efbe8f 100644
--- a/cc/content_layer.cc
+++ b/cc/content_layer.cc
@@ -4,6 +4,7 @@
#include "cc/content_layer.h"
+#include "base/auto_reset.h"
#include "base/debug/trace_event.h"
#include "base/metrics/histogram.h"
#include "base/time.h"
@@ -69,8 +70,12 @@ void ContentLayer::setTexturePriorities(const PriorityCalculator& priorityCalc)
void ContentLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker* occlusion, RenderingStats& stats)
{
- createUpdaterIfNeeded();
- updateUseLCDText();
+ {
+ base::AutoReset<bool> ignoreSetNeedsCommit(&m_ignoreSetNeedsCommit, true);
+
+ createUpdaterIfNeeded();
+ updateUseLCDText();
+ }
TiledLayer::update(queue, occlusion, stats);
m_needsDisplay = false;
« no previous file with comments | « no previous file | cc/layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698