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

Unified Diff: cc/content_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 | « 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
===================================================================
--- cc/content_layer.cc (revision 174074)
+++ cc/content_layer.cc (working copy)
@@ -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,9 +70,13 @@
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