| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const void* pixels) {} | 66 const void* pixels) {} |
| 67 virtual void asyncTexSubImage2DCHROMIUM(GLenum target, | 67 virtual void asyncTexSubImage2DCHROMIUM(GLenum target, |
| 68 GLint level, | 68 GLint level, |
| 69 GLint xoffset, | 69 GLint xoffset, |
| 70 GLint yoffset, | 70 GLint yoffset, |
| 71 GLsizei width, | 71 GLsizei width, |
| 72 GLsizei height, | 72 GLsizei height, |
| 73 GLenum format, | 73 GLenum format, |
| 74 GLenum type, | 74 GLenum type, |
| 75 const void* pixels) {} | 75 const void* pixels) {} |
| 76 virtual void asyncCompressedTexImage2DCHROMIUM(GLenum target, |
| 77 GLint level, |
| 78 GLint internalformat, |
| 79 GLsizei width, |
| 80 GLsizei height, |
| 81 GLint border, |
| 82 GLsizei imagesize, |
| 83 const void* pixels) {} |
| 84 virtual void asyncCompressedTexSubImage2DCHROMIUM(GLenum target, |
| 85 GLint level, |
| 86 GLint xoffset, |
| 87 GLint yoffset, |
| 88 GLsizei width, |
| 89 GLsizei height, |
| 90 GLenum format, |
| 91 GLsizei imagesize, |
| 92 const void* pixels) {} |
| 76 virtual void waitAsyncTexImage2DCHROMIUM(GLenum target) {} | 93 virtual void waitAsyncTexImage2DCHROMIUM(GLenum target) {} |
| 77 virtual void releaseTexImage2DCHROMIUM(GLenum target, GLint image_id) {} | 94 virtual void releaseTexImage2DCHROMIUM(GLenum target, GLint image_id) {} |
| 78 virtual void framebufferRenderbuffer(GLenum target, | 95 virtual void framebufferRenderbuffer(GLenum target, |
| 79 GLenum attachment, | 96 GLenum attachment, |
| 80 GLenum renderbuffertarget, | 97 GLenum renderbuffertarget, |
| 81 GLuint renderbuffer) {} | 98 GLuint renderbuffer) {} |
| 82 virtual void framebufferTexture2D(GLenum target, | 99 virtual void framebufferTexture2D(GLenum target, |
| 83 GLenum attachment, | 100 GLenum attachment, |
| 84 GLenum textarget, | 101 GLenum textarget, |
| 85 GLuint texture, | 102 GLuint texture, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 325 } |
| 309 void set_have_post_sub_buffer(bool have) { | 326 void set_have_post_sub_buffer(bool have) { |
| 310 test_capabilities_.gpu.post_sub_buffer = have; | 327 test_capabilities_.gpu.post_sub_buffer = have; |
| 311 } | 328 } |
| 312 void set_have_discard_framebuffer(bool have) { | 329 void set_have_discard_framebuffer(bool have) { |
| 313 test_capabilities_.gpu.discard_framebuffer = have; | 330 test_capabilities_.gpu.discard_framebuffer = have; |
| 314 } | 331 } |
| 315 void set_support_compressed_texture_etc1(bool support) { | 332 void set_support_compressed_texture_etc1(bool support) { |
| 316 test_capabilities_.gpu.texture_format_etc1 = support; | 333 test_capabilities_.gpu.texture_format_etc1 = support; |
| 317 } | 334 } |
| 335 void set_support_compressed_texture_atc(bool support) { |
| 336 test_capabilities_.gpu.texture_format_atc = support; |
| 337 } |
| 338 void set_support_compressed_texture_dxt(bool support) { |
| 339 test_capabilities_.gpu.texture_format_dxt = support; |
| 340 } |
| 318 void set_support_texture_format_bgra8888(bool support) { | 341 void set_support_texture_format_bgra8888(bool support) { |
| 319 test_capabilities_.gpu.texture_format_bgra8888 = support; | 342 test_capabilities_.gpu.texture_format_bgra8888 = support; |
| 320 } | 343 } |
| 321 void set_support_texture_storage(bool support) { | 344 void set_support_texture_storage(bool support) { |
| 322 test_capabilities_.gpu.texture_storage = support; | 345 test_capabilities_.gpu.texture_storage = support; |
| 323 } | 346 } |
| 324 void set_support_texture_usage(bool support) { | 347 void set_support_texture_usage(bool support) { |
| 325 test_capabilities_.gpu.texture_usage = support; | 348 test_capabilities_.gpu.texture_usage = support; |
| 326 } | 349 } |
| 327 void set_support_sync_query(bool support) { | 350 void set_support_sync_query(bool support) { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 | 492 |
| 470 scoped_refptr<Namespace> namespace_; | 493 scoped_refptr<Namespace> namespace_; |
| 471 static Namespace* shared_namespace_; | 494 static Namespace* shared_namespace_; |
| 472 | 495 |
| 473 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; | 496 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; |
| 474 }; | 497 }; |
| 475 | 498 |
| 476 } // namespace cc | 499 } // namespace cc |
| 477 | 500 |
| 478 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 501 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
| OLD | NEW |