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_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 5 #ifndef CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 6 #define CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.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" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 // WebGraphicsContext3D base class for use in unit tests. | 14 // WebGraphicsContext3D base class for use in unit tests. |
15 // All operations are no-ops (returning 0 if necessary). | 15 // All operations are no-ops (returning 0 if necessary). |
16 class CC_EXPORT FakeWebGraphicsContext3D : | 16 class CC_EXPORT FakeWebGraphicsContext3D |
17 public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { | 17 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
18 public: | 18 public: |
19 FakeWebGraphicsContext3D(); | 19 FakeWebGraphicsContext3D(); |
20 virtual ~FakeWebGraphicsContext3D(); | 20 virtual ~FakeWebGraphicsContext3D(); |
21 | 21 |
22 virtual bool makeContextCurrent(); | 22 virtual bool makeContextCurrent(); |
23 | 23 |
24 virtual int width(); | 24 virtual int width(); |
25 virtual int height(); | 25 virtual int height(); |
26 | 26 |
27 virtual void reshape(int width, int height); | 27 virtual void reshape(int width, int height); |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, | 587 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, |
588 WebKit::WGC3Denum other); | 588 WebKit::WGC3Denum other); |
589 | 589 |
590 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m, | 590 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m, |
591 const WebKit::WGC3Denum* bufs) {} | 591 const WebKit::WGC3Denum* bufs) {} |
592 }; | 592 }; |
593 | 593 |
594 } // namespace cc | 594 } // namespace cc |
595 | 595 |
596 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 596 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |