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

Side by Side Diff: ui/gfx/gl/gl_bindings_skia_in_process.cc

Issue 8381001: Split GL binding init into core and extension part (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added dependencies to gl.gyp. Used NOT_REACHED() instead of DCHECK(0). Created 9 years, 1 month 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 | « ui/gfx/gl/gl.gyp ('k') | ui/gfx/gl/gl_context.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) 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 5
6 #include "ui/gfx/gl/gl_bindings_skia_in_process.h" 6 #include "ui/gfx/gl/gl_bindings_skia_in_process.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/gpu/GrGLInterface.h" 9 #include "third_party/skia/include/gpu/GrGLInterface.h"
10 #include "ui/gfx/gl/gl_bindings.h" 10 #include "ui/gfx/gl/gl_bindings.h"
(...skipping 25 matching lines...) Expand all
36 36
37 GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) { 37 GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) {
38 glBindBuffer(target, buffer); 38 glBindBuffer(target, buffer);
39 } 39 }
40 40
41 GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber, 41 GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber,
42 const GLchar * name) { 42 const GLchar * name) {
43 glBindFragDataLocation(program, colorNumber, name); 43 glBindFragDataLocation(program, colorNumber, name);
44 } 44 }
45 45
46 GLvoid StubGLBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber, 46 GLvoid StubGLBindFragDataLocationIndexed(GLuint program, GLuint colorNumber,
47 GLuint index, const GLchar * name) { 47 GLuint index, const GLchar * name) {
48 glBindFragDataLocationIndexedARB(program, colorNumber, index, name); 48 glBindFragDataLocationIndexed(program, colorNumber, index, name);
49 } 49 }
50 50
51 GLvoid StubGLBindFramebuffer(GLenum target, GLuint framebuffer) { 51 GLvoid StubGLBindFramebuffer(GLenum target, GLuint framebuffer) {
52 glBindFramebufferEXT(target, framebuffer); 52 glBindFramebufferEXT(target, framebuffer);
53 } 53 }
54 54
55 GLvoid StubGLBindRenderbuffer(GLenum target, GLuint renderbuffer) { 55 GLvoid StubGLBindRenderbuffer(GLenum target, GLuint renderbuffer) {
56 glBindRenderbufferEXT(target, renderbuffer); 56 glBindRenderbufferEXT(target, renderbuffer);
57 } 57 }
58 58
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 interface->fGetFramebufferAttachmentParameteriv = 654 interface->fGetFramebufferAttachmentParameteriv =
655 StubGLGetFramebufferAttachmentParameteriv; 655 StubGLGetFramebufferAttachmentParameteriv;
656 interface->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv; 656 interface->fGetRenderbufferParameteriv = StubGLGetRenderbufferParameteriv;
657 interface->fRenderbufferStorage = StubGLRenderbufferStorage; 657 interface->fRenderbufferStorage = StubGLRenderbufferStorage;
658 interface->fRenderbufferStorageMultisample = 658 interface->fRenderbufferStorageMultisample =
659 StubGLRenderbufferStorageMultisample; 659 StubGLRenderbufferStorageMultisample;
660 interface->fBlitFramebuffer = StubGLBlitFramebuffer; 660 interface->fBlitFramebuffer = StubGLBlitFramebuffer;
661 interface->fMapBuffer = StubGLMapBuffer; 661 interface->fMapBuffer = StubGLMapBuffer;
662 interface->fUnmapBuffer = StubGLUnmapBuffer; 662 interface->fUnmapBuffer = StubGLUnmapBuffer;
663 interface->fBindFragDataLocationIndexed = 663 interface->fBindFragDataLocationIndexed =
664 StubGLBindFragDataLocationIndexedARB; 664 StubGLBindFragDataLocationIndexed;
665 return interface; 665 return interface;
666 } 666 }
667 667
668 } // namespace gfx 668 } // namespace gfx
669
OLDNEW
« no previous file with comments | « ui/gfx/gl/gl.gyp ('k') | ui/gfx/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698