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

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

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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
« no previous file with comments | « cc/stubs/FloatSize.h ('k') | cc/stubs/IntPoint.h » ('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 (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
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
OLDNEW
« no previous file with comments | « cc/stubs/FloatSize.h ('k') | cc/stubs/IntPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698