OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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_RESOURCES_PLATFORM_COLOR_H_ | 5 #ifndef CC_RESOURCES_PLATFORM_COLOR_H_ |
6 #define CC_RESOURCES_PLATFORM_COLOR_H_ | 6 #define CC_RESOURCES_PLATFORM_COLOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "cc/resources/resource_format.h" | 10 #include "cc/resources/resource_format.h" |
11 #include "third_party/khronos/GLES2/gl2.h" | |
12 #include "third_party/khronos/GLES2/gl2ext.h" | |
13 #include "third_party/skia/include/core/SkTypes.h" | 11 #include "third_party/skia/include/core/SkTypes.h" |
14 | 12 |
15 namespace cc { | 13 namespace cc { |
16 | 14 |
17 class PlatformColor { | 15 class PlatformColor { |
18 public: | 16 public: |
19 enum SourceDataFormat { | 17 enum SourceDataFormat { |
20 SOURCE_FORMAT_RGBA8, | 18 SOURCE_FORMAT_RGBA8, |
21 SOURCE_FORMAT_BGRA8 | 19 SOURCE_FORMAT_BGRA8 |
22 }; | 20 }; |
(...skipping 27 matching lines...) Expand all Loading... |
50 return false; | 48 return false; |
51 } | 49 } |
52 | 50 |
53 private: | 51 private: |
54 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); | 52 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformColor); |
55 }; | 53 }; |
56 | 54 |
57 } // namespace cc | 55 } // namespace cc |
58 | 56 |
59 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ | 57 #endif // CC_RESOURCES_PLATFORM_COLOR_H_ |
OLD | NEW |