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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 | 585 |
586 virtual void setContextLostCallback( | 586 virtual void setContextLostCallback( |
587 WebGraphicsContextLostCallback* callback); | 587 WebGraphicsContextLostCallback* callback); |
588 | 588 |
589 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, | 589 virtual void loseContextCHROMIUM(WebKit::WGC3Denum current, |
590 WebKit::WGC3Denum other); | 590 WebKit::WGC3Denum other); |
591 | 591 |
592 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m, | 592 virtual void drawBuffersEXT(WebKit::WGC3Dsizei m, |
593 const WebKit::WGC3Denum* bufs) {} | 593 const WebKit::WGC3Denum* bufs) {} |
594 | 594 |
| 595 virtual void bindTexImage2DCHROMIUM(WebKit::WGC3Denum target, |
| 596 WebKit::WGC3Dint image_id) {} |
| 597 |
| 598 // GL_CHROMIUM_gpu_memory_buffer |
| 599 virtual WebKit::WGC3Duint createImageCHROMIUM( |
| 600 WebKit::WGC3Dsizei width, |
| 601 WebKit::WGC3Dsizei height) { return 0; } |
| 602 virtual void destroyImageCHROMIUM(WebKit::WGC3Duint image_id) {} |
| 603 virtual void getImageParameterivCHROMIUM( |
| 604 WebKit::WGC3Duint image_id, |
| 605 WebKit::WGC3Denum pname, |
| 606 WebKit::WGC3Dint* params) {} |
| 607 virtual void* mapImageCHROMIUM( |
| 608 WebKit::WGC3Duint image_id, |
| 609 WebKit::WGC3Denum access) { return 0; } |
| 610 virtual void unmapImageCHROMIUM(WebKit::WGC3Duint image_id) {} |
| 611 |
595 private: | 612 private: |
596 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D); | 613 DISALLOW_COPY_AND_ASSIGN(FakeWebGraphicsContext3D); |
597 }; | 614 }; |
598 | 615 |
599 } // namespace cc | 616 } // namespace cc |
600 | 617 |
601 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ | 618 #endif // CC_DEBUG_FAKE_WEB_GRAPHICS_CONTEXT_3D_H_ |
OLD | NEW |