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_GRAPHICSCONTEXT3D_H_ | 5 #ifndef CC_STUBS_GRAPHICSCONTEXT3D_H_ |
6 #define CC_STUBS_GRAPHICSCONTEXT3D_H_ | 6 #define CC_STUBS_GRAPHICSCONTEXT3D_H_ |
7 | 7 |
8 #include "GraphicsTypes3D.h" | 8 #include "GraphicsTypes3D.h" |
9 #include "IntSize.h" | 9 #include "IntSize.h" |
10 #include "third_party/khronos/GLES2/gl2.h" | 10 #include "third_party/khronos/GLES2/gl2.h" |
11 | 11 |
12 #ifdef NO_ERROR | 12 #ifdef NO_ERROR |
13 #undef NO_ERROR | 13 #undef NO_ERROR |
14 #endif | 14 #endif |
15 | 15 |
16 namespace WebCore { | 16 namespace cc { |
17 | 17 |
18 class GraphicsContext3D { | 18 class GraphicsContext3D { |
19 public: | 19 public: |
20 enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 }; | 20 enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 }; |
21 static bool computeFormatAndTypeParameters(unsigned, unsigned, unsigned* com
ponentsPerPixel, unsigned* bytesPerComponent); | 21 static bool computeFormatAndTypeParameters(unsigned, unsigned, unsigned* com
ponentsPerPixel, unsigned* bytesPerComponent); |
22 | 22 |
23 enum { | 23 enum { |
24 ARRAY_BUFFER = GL_ARRAY_BUFFER, | 24 ARRAY_BUFFER = GL_ARRAY_BUFFER, |
25 BLEND = GL_BLEND, | 25 BLEND = GL_BLEND, |
26 CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE, | 26 CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 UNSIGNED_BYTE = GL_UNSIGNED_BYTE, | 65 UNSIGNED_BYTE = GL_UNSIGNED_BYTE, |
66 UNSIGNED_SHORT = GL_UNSIGNED_SHORT, | 66 UNSIGNED_SHORT = GL_UNSIGNED_SHORT, |
67 VERTEX_SHADER = GL_VERTEX_SHADER, | 67 VERTEX_SHADER = GL_VERTEX_SHADER, |
68 ZERO = GL_ZERO, | 68 ZERO = GL_ZERO, |
69 }; | 69 }; |
70 }; | 70 }; |
71 | 71 |
72 } | 72 } |
73 | 73 |
74 #endif // CC_STUBS_GRAPHICSCONTEXT3D_H_ | 74 #endif // CC_STUBS_GRAPHICSCONTEXT3D_H_ |
75 | |
OLD | NEW |