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

Side by Side Diff: webkit/gpu/gl_bindings_skia_cmd_buffer.cc

Issue 11782020: Refactor so chromium only GL extensions require gl2extchromium.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | « webkit/DEPS ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "webkit/gpu/gl_bindings_skia_cmd_buffer.h" 5 #include "webkit/gpu/gl_bindings_skia_cmd_buffer.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 #include "gpu/GLES2/gl2extchromium.h"
10 #include "third_party/khronos/GLES2/gl2.h" 11 #include "third_party/khronos/GLES2/gl2.h"
11 #include "third_party/khronos/GLES2/gl2ext.h" 12 #include "third_party/khronos/GLES2/gl2ext.h"
12 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" 13 #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
13 14
14 namespace webkit { 15 namespace webkit {
15 namespace gpu { 16 namespace gpu {
16 17
17 GrGLInterface* CreateCommandBufferSkiaGLBinding() { 18 GrGLInterface* CreateCommandBufferSkiaGLBinding() {
18 GrGLInterface* interface = new GrGLInterface; 19 GrGLInterface* interface = new GrGLInterface;
19 interface->fBindingsExported = kES2_GrGLBinding; 20 interface->fBindingsExported = kES2_GrGLBinding;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv; 115 interface->fGetRenderbufferParameteriv = glGetRenderbufferParameteriv;
115 interface->fRenderbufferStorage = glRenderbufferStorage; 116 interface->fRenderbufferStorage = glRenderbufferStorage;
116 interface->fRenderbufferStorageMultisample = 117 interface->fRenderbufferStorageMultisample =
117 glRenderbufferStorageMultisampleEXT; 118 glRenderbufferStorageMultisampleEXT;
118 interface->fBlitFramebuffer = glBlitFramebufferEXT; 119 interface->fBlitFramebuffer = glBlitFramebufferEXT;
119 return interface; 120 return interface;
120 } 121 }
121 122
122 } // namespace gpu 123 } // namespace gpu
123 } // namespace webkit 124 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/DEPS ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698