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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/stubs/GraphicsContext3D.h
diff --git a/cc/stubs/GraphicsContext3D.h b/cc/stubs/GraphicsContext3D.h
new file mode 100644
index 0000000000000000000000000000000000000000..659c3282db8efd914720b6342d7987da7e252965
--- /dev/null
+++ b/cc/stubs/GraphicsContext3D.h
@@ -0,0 +1,72 @@
+#ifndef CC_STUBS_GRAPHICSCONTEXT3D_H_
+#define CC_STUBS_GRAPHICSCONTEXT3D_H_
+
+#include "GraphicsTypes3D.h"
+#include "IntSize.h"
+#include "third_party/khronos/GLES2/gl2.h"
+
+namespace WebCore {
+
+class GraphicsContext3D {
+public:
+ enum SourceDataFormat { SourceFormatRGBA8, SourceFormatBGRA8 };
+ static bool computeFormatAndTypeParameters(unsigned, unsigned, unsigned* componentsPerPixel, unsigned* bytesPerComponent)
+ {
+ *componentsPerPixel = 4;
+ *bytesPerComponent = 1;
+ return true;
+ }
+
+ enum {
+ ARRAY_BUFFER = GL_ARRAY_BUFFER,
+ BLEND = GL_BLEND,
+ CLAMP_TO_EDGE = GL_CLAMP_TO_EDGE,
+ COLOR_ATTACHMENT0 = GL_COLOR_ATTACHMENT0,
+ COLOR_BUFFER_BIT = GL_COLOR_BUFFER_BIT,
+ COMPILE_STATUS = GL_COMPILE_STATUS,
+ CULL_FACE = GL_CULL_FACE,
+ DEPTH_TEST = GL_DEPTH_TEST,
+ ELEMENT_ARRAY_BUFFER = GL_ELEMENT_ARRAY_BUFFER,
+ EXTENSIONS = GL_EXTENSIONS,
+ FLOAT = GL_FLOAT,
+ FRAGMENT_SHADER = GL_FRAGMENT_SHADER,
+ FRAMEBUFFER_COMPLETE = GL_FRAMEBUFFER_COMPLETE,
+ FRAMEBUFFER = GL_FRAMEBUFFER,
+ INVALID_ENUM = GL_INVALID_ENUM,
+ INVALID_VALUE = GL_INVALID_VALUE,
+ LINEAR = GL_LINEAR,
+ LINE_LOOP = GL_LINE_LOOP ,
+ LINK_STATUS = GL_LINK_STATUS,
+ LUMINANCE = GL_LUMINANCE,
+ MAX_TEXTURE_SIZE = GL_MAX_TEXTURE_SIZE,
+ NEAREST = GL_NEAREST,
+ NO_ERROR = GL_NO_ERROR,
+ ONE = GL_ONE,
+ ONE_MINUS_SRC_ALPHA = GL_ONE_MINUS_SRC_ALPHA,
+ RGBA = GL_RGBA,
+ RGB = GL_RGB,
+ SCISSOR_TEST = GL_SCISSOR_TEST,
+ SRC_ALPHA = GL_SRC_ALPHA,
+ STATIC_DRAW = GL_STATIC_DRAW,
+ TEXTURE0 = GL_TEXTURE0,
+ TEXTURE1 = GL_TEXTURE1,
+ TEXTURE_2D = GL_TEXTURE_2D,
+ TEXTURE2 = GL_TEXTURE2,
+ TEXTURE3 = GL_TEXTURE3,
+ TEXTURE_MAG_FILTER = GL_TEXTURE_MAG_FILTER,
+ TEXTURE_MIN_FILTER = GL_TEXTURE_MIN_FILTER,
+ TEXTURE_WRAP_S = GL_TEXTURE_WRAP_S,
+ TEXTURE_WRAP_T = GL_TEXTURE_WRAP_T,
+ TRIANGLES = GL_TRIANGLES,
+ TRIANGLE_FAN = GL_TRIANGLE_FAN,
+ UNSIGNED_BYTE = GL_UNSIGNED_BYTE,
+ UNSIGNED_SHORT = GL_UNSIGNED_SHORT,
+ VERTEX_SHADER = GL_VERTEX_SHADER,
+ ZERO = GL_ZERO,
+ };
+};
+
+}
+
+#endif // CC_STUBS_GRAPHICSCONTEXT3D_H_
+

Powered by Google App Engine
This is Rietveld 408576698