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

Side by Side Diff: cc/stubs/GraphicsContext3D.h

Issue 10828381: libcc and webkit_compositor targets + stubs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Slightly better scripts and updated README Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #ifndef CC_STUBS_GRAPHICSCONTEXT3D_H_
2 #define CC_STUBS_GRAPHICSCONTEXT3D_H_
3
4 #include "GraphicsTypes3D.h"
5 #include "IntSize.h"
6 #include "third_party/khronos/GLES2/gl2.h"
7
8 namespace WebCore {
9
10 class GraphicsContext3D {
11 public:
12 enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 };
13 static bool computeFormatAndTypeParameters(unsigned, unsigned, unsigned* com ponentsPerPixel, unsigned* bytesPerComponent)
14 {
15 *componentsPerPixel = 4;
16 *bytesPerComponent = 1;
17 return true;
18 }
19
20 enum {
21 ARRAY_BUFFER = GL_ARRAY_BUFFER,
22 BLEND = GL_BLEND,
23 CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE,
24 COLOR_ATTACHMENT0 = GL_COLOR_ATTACHMENT0,
25 COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT,
26 COMPILE_STATUS = GL_COMPILE_STATUS,
27 CULL_FACE = GL_CULL_FACE,
28 DEPTH_TEST = GL_DEPTH_TEST,
29 ELEMENT_ARRAY_BUFFER = GL_ELEMENT_ARRAY_BUFFER,
30 EXTENSIONS = GL_EXTENSIONS,
31 FLOAT = GL_FLOAT,
32 FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
33 FRAMEBUFFER_COMPLETE = GL_FRAMEBUFFER_COMPLETE,
34 FRAMEBUFFER = GL_FRAMEBUFFER,
35 INVALID_ENUM = GL_INVALID_ENUM,
36 INVALID_VALUE = GL_INVALID_VALUE,
37 LINEAR = GL_LINEAR,
38 LINE_LOOP = GL_LINE_LOOP ,
39 LINK_STATUS = GL_LINK_STATUS,
40 LUMINANCE = GL_LUMINANCE,
41 MAX_TEXTURE_SIZE = GL_MAX_TEXTURE_SIZE,
42 NEAREST = GL_NEAREST,
43 NO_ERROR = GL_NO_ERROR,
44 ONE = GL_ONE,
45 ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
46 RGBA = GL_RGBA,
47 RGB = GL_RGB,
48 SCISSOR_TEST = GL_SCISSOR_TEST,
49 SRC_ALPHA = GL_SRC_ALPHA,
50 STATIC_DRAW = GL_STATIC_DRAW,
51 TEXTURE0 = GL_TEXTURE0,
52 TEXTURE1 = GL_TEXTURE1,
53 TEXTURE_2D = GL_TEXTURE_2D,
54 TEXTURE2 = GL_TEXTURE2,
55 TEXTURE3 = GL_TEXTURE3,
56 TEXTURE_MAG_FILTER = GL_TEXTURE_MAG_FILTER,
57 TEXTURE_MIN_FILTER = GL_TEXTURE_MIN_FILTER,
58 TEXTURE_WRAP_S = GL_TEXTURE_WRAP_S,
59 TEXTURE_WRAP_T = GL_TEXTURE_WRAP_T,
60 TRIANGLES = GL_TRIANGLES,
61 TRIANGLE_FAN = GL_TRIANGLE_FAN,
62 UNSIGNED_BYTE = GL_UNSIGNED_BYTE,
63 UNSIGNED_SHORT = GL_UNSIGNED_SHORT,
64 VERTEX_SHADER = GL_VERTEX_SHADER,
65 ZERO = GL_ZERO,
66 };
67 };
68
69 }
70
71 #endif // CC_STUBS_GRAPHICSCONTEXT3D_H_
72
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698