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

Side by Side Diff: cc/platform_color.h

Issue 11615020: Clean up cc and webkit/compositor_bindings include path shenanigans (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/program_binding.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PLATFORM_COLOR_H_ 5 #ifndef CC_PLATFORM_COLOR_H_
6 #define CC_PLATFORM_COLOR_H_ 6 #define CC_PLATFORM_COLOR_H_
7 7
8 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
8 #include "third_party/khronos/GLES2/gl2.h" 9 #include "third_party/khronos/GLES2/gl2.h"
9 #include "third_party/khronos/GLES2/gl2ext.h" 10 #include "third_party/khronos/GLES2/gl2ext.h"
10 #include "third_party/skia/include/core/SkTypes.h" 11 #include "third_party/skia/include/core/SkTypes.h"
11 #include <public/WebGraphicsContext3D.h>
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class PlatformColor { 15 class PlatformColor {
16 public: 16 public:
17 enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 }; 17 enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 };
18 18
19 static SourceDataFormat format() 19 static SourceDataFormat format()
20 { 20 {
21 return SK_B32_SHIFT ? SourceFormatRGBA8 : SourceFormatBGRA8; 21 return SK_B32_SHIFT ? SourceFormatRGBA8 : SourceFormatBGRA8;
(...skipping 29 matching lines...) Expand all
51 default: 51 default:
52 NOTREACHED(); 52 NOTREACHED();
53 return false; 53 return false;
54 } 54 }
55 } 55 }
56 }; 56 };
57 57
58 } // namespace cc 58 } // namespace cc
59 59
60 #endif // CC_PLATFORM_COLOR_H_ 60 #endif // CC_PLATFORM_COLOR_H_
OLDNEW
« no previous file with comments | « cc/occlusion_tracker_unittest.cc ('k') | cc/program_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698