| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_TEST_GLES2_INTERFACE_H_ | 5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_ |
| 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ | 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ |
| 7 | 7 |
| 8 #include "gpu/command_buffer/client/gles2_interface_stub.h" | 8 #include "gpu/command_buffer/client/gles2_interface_stub.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 GLsizei width, | 130 GLsizei width, |
| 131 GLsizei height) override; | 131 GLsizei height) override; |
| 132 | 132 |
| 133 void* MapBufferCHROMIUM(GLuint target, GLenum access) override; | 133 void* MapBufferCHROMIUM(GLuint target, GLenum access) override; |
| 134 GLboolean UnmapBufferCHROMIUM(GLuint target) override; | 134 GLboolean UnmapBufferCHROMIUM(GLuint target) override; |
| 135 void BufferData(GLenum target, | 135 void BufferData(GLenum target, |
| 136 GLsizeiptr size, | 136 GLsizeiptr size, |
| 137 const void* data, | 137 const void* data, |
| 138 GLenum usage) override; | 138 GLenum usage) override; |
| 139 | 139 |
| 140 void WaitSyncPointCHROMIUM(GLuint sync_point) override; | |
| 141 GLuint InsertSyncPointCHROMIUM() override; | 140 GLuint InsertSyncPointCHROMIUM() override; |
| 142 | 141 |
| 142 void WaitSyncTokenCHROMIUM(const GLbyte* sync_token) override; |
| 143 |
| 143 void BeginQueryEXT(GLenum target, GLuint id) override; | 144 void BeginQueryEXT(GLenum target, GLuint id) override; |
| 144 void EndQueryEXT(GLenum target) override; | 145 void EndQueryEXT(GLenum target) override; |
| 145 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override; | 146 void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override; |
| 146 | 147 |
| 147 void DiscardFramebufferEXT(GLenum target, | 148 void DiscardFramebufferEXT(GLenum target, |
| 148 GLsizei count, | 149 GLsizei count, |
| 149 const GLenum* attachments) override; | 150 const GLenum* attachments) override; |
| 150 void GenMailboxCHROMIUM(GLbyte* mailbox) override; | 151 void GenMailboxCHROMIUM(GLbyte* mailbox) override; |
| 151 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; | 152 void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; |
| 152 void ProduceTextureDirectCHROMIUM(GLuint texture, | 153 void ProduceTextureDirectCHROMIUM(GLuint texture, |
| 153 GLenum target, | 154 GLenum target, |
| 154 const GLbyte* mailbox) override; | 155 const GLbyte* mailbox) override; |
| 155 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; | 156 void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override; |
| 156 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target, | 157 GLuint CreateAndConsumeTextureCHROMIUM(GLenum target, |
| 157 const GLbyte* mailbox) override; | 158 const GLbyte* mailbox) override; |
| 158 | 159 |
| 159 void ResizeCHROMIUM(GLuint width, GLuint height, float device_scale) override; | 160 void ResizeCHROMIUM(GLuint width, GLuint height, float device_scale) override; |
| 160 void LoseContextCHROMIUM(GLenum current, GLenum other) override; | 161 void LoseContextCHROMIUM(GLenum current, GLenum other) override; |
| 161 GLenum GetGraphicsResetStatusKHR() override; | 162 GLenum GetGraphicsResetStatusKHR() override; |
| 162 | 163 |
| 163 private: | 164 private: |
| 164 TestWebGraphicsContext3D* test_context_; | 165 TestWebGraphicsContext3D* test_context_; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace cc | 168 } // namespace cc |
| 168 | 169 |
| 169 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ | 170 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ |
| OLD | NEW |