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/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 12 #include "ui/compositor/compositor_export.h" |
12 | 13 |
13 namespace gfx { | 14 namespace gfx { |
14 class GLContext; | 15 class GLContext; |
15 class GLSurface; | 16 class GLSurface; |
16 } | 17 } |
17 | 18 |
18 namespace ui { | 19 namespace ui { |
19 | 20 |
20 // WebGraphicsContext3D that does nothing. Suitable for testing. | 21 // WebGraphicsContext3D that does nothing. Suitable for testing. |
21 class TestWebGraphicsContext3D : public WebKit::WebGraphicsContext3D { | 22 class COMPOSITOR_EXPORT TestWebGraphicsContext3D : |
| 23 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
22 public: | 24 public: |
23 TestWebGraphicsContext3D(); | 25 TestWebGraphicsContext3D(); |
24 virtual ~TestWebGraphicsContext3D(); | 26 virtual ~TestWebGraphicsContext3D(); |
25 | 27 |
26 void Initialize(); | 28 void Initialize(); |
27 virtual bool makeContextCurrent(); | 29 virtual bool makeContextCurrent(); |
28 virtual int width(); | 30 virtual int width(); |
29 virtual int height(); | 31 virtual int height(); |
30 virtual void reshape(int width, int height) {} | 32 virtual void reshape(int width, int height) {} |
31 virtual bool isGLES2Compliant(); | 33 virtual bool isGLES2Compliant(); |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 scoped_refptr<gfx::GLContext> gl_context_; | 449 scoped_refptr<gfx::GLContext> gl_context_; |
448 scoped_refptr<gfx::GLSurface> gl_surface_; | 450 scoped_refptr<gfx::GLSurface> gl_surface_; |
449 unsigned next_texture_id_; | 451 unsigned next_texture_id_; |
450 | 452 |
451 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); | 453 DISALLOW_COPY_AND_ASSIGN(TestWebGraphicsContext3D); |
452 }; | 454 }; |
453 | 455 |
454 } // namespace ui | 456 } // namespace ui |
455 | 457 |
456 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ | 458 #endif // UI_COMPOSITOR_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |