OLD | NEW |
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 | 5 |
6 #include "ui/gl/gl_bindings_skia_in_process.h" | 6 #include "ui/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/gl/GrGLInterface.h" | 9 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" |
10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 GLvoid StubGLDisable(GLenum cap) { | 182 GLvoid StubGLDisable(GLenum cap) { |
183 glDisable(cap); | 183 glDisable(cap); |
184 } | 184 } |
185 | 185 |
186 GLvoid StubGLDisableVertexAttribArray(GLuint index) { | 186 GLvoid StubGLDisableVertexAttribArray(GLuint index) { |
187 glDisableVertexAttribArray(index); | 187 glDisableVertexAttribArray(index); |
188 } | 188 } |
189 | 189 |
| 190 GLvoid StubGLDiscardFramebuffer(GLenum target, GLsizei numAttachments, |
| 191 const GLenum *attachments) { |
| 192 glDiscardFramebufferEXT(target, numAttachments, attachments); |
| 193 } |
| 194 |
190 GLvoid StubGLDrawArrays(GLenum mode, GLint first, GLsizei count) { | 195 GLvoid StubGLDrawArrays(GLenum mode, GLint first, GLsizei count) { |
191 glDrawArrays(mode, first, count); | 196 glDrawArrays(mode, first, count); |
192 } | 197 } |
193 | 198 |
194 GLvoid StubGLDrawBuffer(GLenum mode) { | 199 GLvoid StubGLDrawBuffer(GLenum mode) { |
195 glDrawBuffer(mode); | 200 glDrawBuffer(mode); |
196 } | 201 } |
197 | 202 |
198 GLvoid StubGLDrawBuffers(GLsizei n, const GLenum* bufs) { | 203 GLvoid StubGLDrawBuffers(GLsizei n, const GLenum* bufs) { |
199 glDrawBuffersARB(n, bufs); | 204 glDrawBuffersARB(n, bufs); |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 functions->fCullFace = StubGLCullFace; | 629 functions->fCullFace = StubGLCullFace; |
625 functions->fDeleteBuffers = StubGLDeleteBuffers; | 630 functions->fDeleteBuffers = StubGLDeleteBuffers; |
626 functions->fDeleteProgram = StubGLDeleteProgram; | 631 functions->fDeleteProgram = StubGLDeleteProgram; |
627 functions->fDeleteQueries = StubGLDeleteQueries; | 632 functions->fDeleteQueries = StubGLDeleteQueries; |
628 functions->fDeleteShader = StubGLDeleteShader; | 633 functions->fDeleteShader = StubGLDeleteShader; |
629 functions->fDeleteTextures = StubGLDeleteTextures; | 634 functions->fDeleteTextures = StubGLDeleteTextures; |
630 functions->fDeleteVertexArrays = StubGLDeleteVertexArrays; | 635 functions->fDeleteVertexArrays = StubGLDeleteVertexArrays; |
631 functions->fDepthMask = StubGLDepthMask; | 636 functions->fDepthMask = StubGLDepthMask; |
632 functions->fDisable = StubGLDisable; | 637 functions->fDisable = StubGLDisable; |
633 functions->fDisableVertexAttribArray = StubGLDisableVertexAttribArray; | 638 functions->fDisableVertexAttribArray = StubGLDisableVertexAttribArray; |
| 639 functions->fDiscardFramebuffer = StubGLDiscardFramebuffer; |
634 functions->fDrawArrays = StubGLDrawArrays; | 640 functions->fDrawArrays = StubGLDrawArrays; |
635 functions->fDrawBuffer = StubGLDrawBuffer; | 641 functions->fDrawBuffer = StubGLDrawBuffer; |
636 functions->fDrawBuffers = StubGLDrawBuffers; | 642 functions->fDrawBuffers = StubGLDrawBuffers; |
637 functions->fDrawElements = StubGLDrawElements; | 643 functions->fDrawElements = StubGLDrawElements; |
638 functions->fEnable = StubGLEnable; | 644 functions->fEnable = StubGLEnable; |
639 functions->fEnableVertexAttribArray = StubGLEnableVertexAttribArray; | 645 functions->fEnableVertexAttribArray = StubGLEnableVertexAttribArray; |
640 functions->fEndQuery = StubGLEndQuery; | 646 functions->fEndQuery = StubGLEndQuery; |
641 functions->fFinish = StubGLFinish; | 647 functions->fFinish = StubGLFinish; |
642 functions->fFlush = StubGLFlush; | 648 functions->fFlush = StubGLFlush; |
643 functions->fFrontFace = StubGLFrontFace; | 649 functions->fFrontFace = StubGLFrontFace; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
725 functions->fBlitFramebuffer = StubGLBlitFramebuffer; | 731 functions->fBlitFramebuffer = StubGLBlitFramebuffer; |
726 functions->fMapBuffer = StubGLMapBuffer; | 732 functions->fMapBuffer = StubGLMapBuffer; |
727 functions->fUnmapBuffer = StubGLUnmapBuffer; | 733 functions->fUnmapBuffer = StubGLUnmapBuffer; |
728 functions->fBindFragDataLocationIndexed = | 734 functions->fBindFragDataLocationIndexed = |
729 StubGLBindFragDataLocationIndexed; | 735 StubGLBindFragDataLocationIndexed; |
730 | 736 |
731 return interface; | 737 return interface; |
732 } | 738 } |
733 | 739 |
734 } // namespace gfx | 740 } // namespace gfx |
OLD | NEW |