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

Unified Diff: cc/stubs/extensions_3d_chromium.h

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « cc/stubs/extensions_3d.h ('k') | cc/stubs/float_point.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/stubs/extensions_3d_chromium.h
diff --git a/cc/stubs/extensions_3d_chromium.h b/cc/stubs/extensions_3d_chromium.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..f5d36d2300a7e444a2758500a3ee6951abacc710 100644
--- a/cc/stubs/extensions_3d_chromium.h
+++ b/cc/stubs/extensions_3d_chromium.h
@@ -1,3 +1,54 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
+#ifndef CC_STUBS_EXTENSIONS3DCHROMIUM_H_
+#define CC_STUBS_EXTENSIONS3DCHROMIUM_H_
+
+#include "Extensions3D.h"
+
+// These enum names collides with gl2ext.h, so we just redefine them.
+#ifdef GL_TEXTURE_EXTERNAL_OES
+#undef GL_TEXTURE_EXTERNAL_OES
+#endif
+#ifdef GL_TEXTURE_USAGE_ANGLE
+#undef GL_TEXTURE_USAGE_ANGLE
+#endif
+#ifdef GL_FRAMEBUFFER_ATTACHMENT_ANGLE
+#undef GL_FRAMEBUFFER_ATTACHMENT_ANGLE
+#endif
+
+namespace cc {
+
+class Extensions3DChromium {
+public:
+ enum {
+ // GL_OES_EGL_image_external
+ GL_TEXTURE_EXTERNAL_OES = 0x8D65,
+
+ // GL_CHROMIUM_map_sub (enums inherited from GL_ARB_vertex_buffer_object)
+ READ_ONLY = 0x88B8,
+ WRITE_ONLY = 0x88B9,
+
+ // GL_ANGLE_texture_usage
+ GL_TEXTURE_USAGE_ANGLE = 0x93A2,
+ GL_FRAMEBUFFER_ATTACHMENT_ANGLE = 0x93A3,
+
+ // GL_EXT_texture_storage
+ BGRA8_EXT = 0x93A1,
+
+ // GL_EXT_occlusion_query_boolean
+ ANY_SAMPLES_PASSED_EXT = 0x8C2F,
+ ANY_SAMPLES_PASSED_CONSERVATIVE_EXT = 0x8D6A,
+ CURRENT_QUERY_EXT = 0x8865,
+ QUERY_RESULT_EXT = 0x8866,
+ QUERY_RESULT_AVAILABLE_EXT = 0x8867,
+
+ // GL_CHROMIUM_command_buffer_query
+ COMMANDS_ISSUED_CHROMIUM = 0x84F2
+ };
+};
+
+}
+
+#endif // CC_STUBS_EXTENSIONS3DCHROMIUM_H_
« no previous file with comments | « cc/stubs/extensions_3d.h ('k') | cc/stubs/float_point.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698