OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_STUBS_SKIAUTILS_H_ | 5 #include "config.h" |
6 #define CC_STUBS_SKIAUTILS_H_ | 6 |
| 7 #include "cc/compositor_support_state.h" |
| 8 |
| 9 #include "cc/thread.h" |
7 | 10 |
8 namespace cc { | 11 namespace cc { |
9 | 12 |
10 inline SkScalar CCFloatToSkScalar(float f) | 13 CompositorSupportState::CompositorSupportState() |
| 14 : mainThread(NULL) |
| 15 , implThread(NULL) |
11 { | 16 { |
12 return SkFloatToScalar(isfinite(f) ? f : 0); | |
13 } | 17 } |
14 | 18 |
15 } | 19 } |
16 | |
17 #endif // CC_STUBS_SKIAUTILS_H_ | |
OLD | NEW |