| 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_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 GLint yoffset, | 162 GLint yoffset, |
| 163 GLsizei width, | 163 GLsizei width, |
| 164 GLsizei height, | 164 GLsizei height, |
| 165 GLenum format, | 165 GLenum format, |
| 166 GLenum type, | 166 GLenum type, |
| 167 const void* pixels) {} | 167 const void* pixels) {} |
| 168 | 168 |
| 169 virtual void genMailboxCHROMIUM(GLbyte* mailbox); | 169 virtual void genMailboxCHROMIUM(GLbyte* mailbox); |
| 170 virtual void produceTextureCHROMIUM(GLenum target, | 170 virtual void produceTextureCHROMIUM(GLenum target, |
| 171 const GLbyte* mailbox) { } | 171 const GLbyte* mailbox) { } |
| 172 virtual void produceTextureDirectCHROMIUM(GLuint texture, |
| 173 GLenum target, |
| 174 const GLbyte* mailbox) {} |
| 172 virtual void consumeTextureCHROMIUM(GLenum target, | 175 virtual void consumeTextureCHROMIUM(GLenum target, |
| 173 const GLbyte* mailbox) { } | 176 const GLbyte* mailbox) { } |
| 177 virtual GLuint createAndConsumeTextureCHROMIUM(GLenum target, |
| 178 const GLbyte* mailbox); |
| 174 | 179 |
| 175 virtual void loseContextCHROMIUM(GLenum current, GLenum other); | 180 virtual void loseContextCHROMIUM(GLenum current, GLenum other); |
| 176 | 181 |
| 177 virtual void bindTexImage2DCHROMIUM(GLenum target, GLint image_id) {} | 182 virtual void bindTexImage2DCHROMIUM(GLenum target, GLint image_id) {} |
| 178 | 183 |
| 179 virtual void drawArrays(GLenum mode, GLint first, GLsizei count) {} | 184 virtual void drawArrays(GLenum mode, GLint first, GLsizei count) {} |
| 180 virtual void drawElements(GLenum mode, | 185 virtual void drawElements(GLenum mode, |
| 181 GLsizei count, | 186 GLsizei count, |
| 182 GLenum type, | 187 GLenum type, |
| 183 GLintptr offset) {} | 188 GLintptr offset) {} |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 | 447 |
| 443 scoped_refptr<Namespace> namespace_; | 448 scoped_refptr<Namespace> namespace_; |
| 444 static Namespace* shared_namespace_; | 449 static Namespace* shared_namespace_; |
| 445 | 450 |
| 446 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 451 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 447 }; | 452 }; |
| 448 | 453 |
| 449 } // namespace cc | 454 } // namespace cc |
| 450 | 455 |
| 451 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 456 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |