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

Unified Diff: content/renderer/gpu/compositor_output_surface.cc

Issue 12220095: cc: Fix resource provider fences and add DCHECKs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bot Created 7 years, 10 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
« no previous file with comments | « cc/gl_renderer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/compositor_output_surface.cc
diff --git a/content/renderer/gpu/compositor_output_surface.cc b/content/renderer/gpu/compositor_output_surface.cc
index 2b18c357317fa617559009923ae85cdb946e9e05..da7c3c129a201bffe6d9a245589b39b2b036c74e 100644
--- a/content/renderer/gpu/compositor_output_surface.cc
+++ b/content/renderer/gpu/compositor_output_surface.cc
@@ -149,10 +149,10 @@ namespace {
void CompositorOutputSurface::UpdateSmoothnessTakesPriority(
bool prefers_smoothness) {
-#if ENABLE_DCHECK
+#ifndef NDEBUG
// If we use different compositor threads, we need to
// use an atomic int to track prefer smoothness count.
- static int g_last_thread = base::PlatformThread::CurrentId();
+ base::PlatformThreadId g_last_thread = base::PlatformThread::CurrentId();
joth 2013/04/05 05:30:32 removing the static here makes the dcheck below po
DCHECK_EQ(g_last_thread, base::PlatformThread::CurrentId());
#endif
if (prefers_smoothness_ == prefers_smoothness)
« no previous file with comments | « cc/gl_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698