| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #include "gl/GrGLInterface.h" | 9 #include "gl/GrGLInterface.h" |
| 10 #include "GrGLTestInterface.h" | 10 #include "GrGLTestInterface.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 /** Null interface implementation */ | 109 /** Null interface implementation */ |
| 110 class NullInterface : public GrGLTestInterface { | 110 class NullInterface : public GrGLTestInterface { |
| 111 public: | 111 public: |
| 112 NullInterface() | 112 NullInterface() |
| 113 : fCurrArrayBuffer(0) | 113 : fCurrArrayBuffer(0) |
| 114 , fCurrElementArrayBuffer(0) | 114 , fCurrElementArrayBuffer(0) |
| 115 , fCurrPixelPackBuffer(0) | 115 , fCurrPixelPackBuffer(0) |
| 116 , fCurrPixelUnpackBuffer(0) | 116 , fCurrPixelUnpackBuffer(0) |
| 117 , fCurrProgramID(0) |
| 117 , fCurrShaderID(0) | 118 , fCurrShaderID(0) |
| 118 , fCurrGenericID(0) | 119 , fCurrGenericID(0) |
| 119 , fCurrUniformLocation(0) { | 120 , fCurrUniformLocation(0) { |
| 120 this->init(kGL_GrGLStandard); | 121 this->init(kGL_GrGLStandard); |
| 121 } | 122 } |
| 122 | 123 |
| 123 GrGLenum checkFramebufferStatus(GrGLenum target) override { | 124 GrGLenum checkFramebufferStatus(GrGLenum target) override { |
| 124 return GR_GL_FRAMEBUFFER_COMPLETE; | 125 return GR_GL_FRAMEBUFFER_COMPLETE; |
| 125 } | 126 } |
| 126 | 127 |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 "GL_ARB_timer_query", | 606 "GL_ARB_timer_query", |
| 606 "GL_ARB_draw_buffers", | 607 "GL_ARB_draw_buffers", |
| 607 "GL_ARB_occlusion_query", | 608 "GL_ARB_occlusion_query", |
| 608 "GL_EXT_stencil_wrap", | 609 "GL_EXT_stencil_wrap", |
| 609 nullptr, // signifies the end of the array. | 610 nullptr, // signifies the end of the array. |
| 610 }; | 611 }; |
| 611 | 612 |
| 612 } // anonymous namespace | 613 } // anonymous namespace |
| 613 | 614 |
| 614 const GrGLInterface* GrGLCreateNullInterface() { return new NullInterface; } | 615 const GrGLInterface* GrGLCreateNullInterface() { return new NullInterface; } |
| OLD | NEW |