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 #ifndef UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { | 23 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
24 public: | 24 public: |
25 TestWebGraphicsContext3D(); | 25 TestWebGraphicsContext3D(); |
26 virtual ~TestWebGraphicsContext3D(); | 26 virtual ~TestWebGraphicsContext3D(); |
27 | 27 |
28 void Initialize(); | 28 void Initialize(); |
29 virtual bool makeContextCurrent(); | 29 virtual bool makeContextCurrent(); |
30 virtual int width(); | 30 virtual int width(); |
31 virtual int height(); | 31 virtual int height(); |
32 virtual void reshape(int width, int height) {} | 32 virtual void reshape(int width, int height) {} |
33 virtual bool isGLES2Compliant(); | |
34 virtual bool readBackFramebuffer(unsigned char* pixels, | 33 virtual bool readBackFramebuffer(unsigned char* pixels, |
35 size_t bufferSize, | 34 size_t bufferSize, |
36 WebKit::WebGLId framebuffer, | 35 WebKit::WebGLId framebuffer, |
37 int width, | 36 int width, |
38 int height); | 37 int height); |
39 virtual WebKit::WebGLId getPlatformTextureId(); | |
40 virtual void prepareTexture() {} | 38 virtual void prepareTexture() {} |
41 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) {} | 39 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) {} |
42 virtual void synthesizeGLError(WebKit::WGC3Denum value) {} | 40 virtual void synthesizeGLError(WebKit::WGC3Denum value) {} |
43 virtual bool isContextLost(); | 41 virtual bool isContextLost(); |
44 virtual void* mapBufferSubDataCHROMIUM(WebKit::WGC3Denum target, | 42 virtual void* mapBufferSubDataCHROMIUM(WebKit::WGC3Denum target, |
45 WebKit::WGC3Dintptr offset, | 43 WebKit::WGC3Dintptr offset, |
46 WebKit::WGC3Dsizeiptr size, | 44 WebKit::WGC3Dsizeiptr size, |
47 WebKit::WGC3Denum access); | 45 WebKit::WGC3Denum access); |
48 virtual void unmapBufferSubDataCHROMIUM(const void* data) {} | 46 virtual void unmapBufferSubDataCHROMIUM(const void* data) {} |
49 virtual void* mapTexSubImage2DCHROMIUM(WebKit::WGC3Denum target, | 47 virtual void* mapTexSubImage2DCHROMIUM(WebKit::WGC3Denum target, |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 scoped_refptr<gfx::GLContext> gl_context_; | 447 scoped_refptr<gfx::GLContext> gl_context_; |
450 scoped_refptr<gfx::GLSurface> gl_surface_; | 448 scoped_refptr<gfx::GLSurface> gl_surface_; |
451 unsigned next_texture_id_; | 449 unsigned next_texture_id_; |
452 | 450 |
453 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); | 451 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); |
454 }; | 452 }; |
455 | 453 |
456 } // namespace ui | 454 } // namespace ui |
457 | 455 |
458 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 456 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |