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

Unified Diff: cc/compositor_support_state.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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/compositor_support_state.cc
diff --git a/cc/stubs/skia_utils.h b/cc/compositor_support_state.cc
similarity index 51%
copy from cc/stubs/skia_utils.h
copy to cc/compositor_support_state.cc
index fb81f3eec3ad509ebe615790ea4eaf31b7f5f36b..644d53f453b18abfd5dcfbff3db503ab92b9b184 100644
--- a/cc/stubs/skia_utils.h
+++ b/cc/compositor_support_state.cc
@@ -2,16 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_STUBS_SKIAUTILS_H_
-#define CC_STUBS_SKIAUTILS_H_
+#include "config.h"
+
+#include "cc/compositor_support_state.h"
+
+#include "cc/thread.h"
namespace cc {
-inline SkScalar CCFloatToSkScalar(float f)
+CompositorSupportState::CompositorSupportState()
+ : mainThread(NULL)
+ , implThread(NULL)
{
- return SkFloatToScalar(isfinite(f) ? f : 0);
}
}
-
-#endif // CC_STUBS_SKIAUTILS_H_

Powered by Google App Engine
This is Rietveld 408576698