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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); | 474 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); |
475 | 475 |
476 virtual void texImageIOSurface2DCHROMIUM( | 476 virtual void texImageIOSurface2DCHROMIUM( |
477 WGC3Denum target, WGC3Dint width, WGC3Dint height, | 477 WGC3Denum target, WGC3Dint width, WGC3Dint height, |
478 WGC3Duint ioSurfaceId, WGC3Duint plane); | 478 WGC3Duint ioSurfaceId, WGC3Duint plane); |
479 | 479 |
480 virtual void texStorage2DEXT( | 480 virtual void texStorage2DEXT( |
481 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, | 481 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, |
482 WGC3Dint width, WGC3Dint height); | 482 WGC3Dint width, WGC3Dint height); |
483 | 483 |
| 484 virtual WebGLId createQueryEXT(); |
| 485 virtual void deleteQueryEXT(WebGLId query); |
| 486 virtual WGC3Dboolean isQueryEXT(WGC3Duint query); |
| 487 virtual void beginQueryEXT(WGC3Denum target, WebGLId query); |
| 488 virtual void endQueryEXT(WGC3Denum target); |
| 489 virtual void getQueryivEXT( |
| 490 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); |
| 491 virtual void getQueryObjectuivEXT( |
| 492 WebGLId query, WGC3Denum pname, WGC3Duint* params); |
| 493 |
484 ContentGLContext* content_gl_context() const { return context_; } | 494 ContentGLContext* content_gl_context() const { return context_; } |
485 | 495 |
486 protected: | 496 protected: |
487 #if WEBKIT_USING_SKIA | 497 #if WEBKIT_USING_SKIA |
488 virtual GrGLInterface* onCreateGrGLInterface(); | 498 virtual GrGLInterface* onCreateGrGLInterface(); |
489 #endif | 499 #endif |
490 | 500 |
491 private: | 501 private: |
492 // Initialize the underlying GL context. May be called multiple times; second | 502 // Initialize the underlying GL context. May be called multiple times; second |
493 // and subsequent calls are ignored. Must be called from the thread that is | 503 // and subsequent calls are ignored. Must be called from the thread that is |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 556 |
547 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 557 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
548 std::vector<uint8> scanline_; | 558 std::vector<uint8> scanline_; |
549 void FlipVertically(uint8* framebuffer, | 559 void FlipVertically(uint8* framebuffer, |
550 unsigned int width, | 560 unsigned int width, |
551 unsigned int height); | 561 unsigned int height); |
552 #endif | 562 #endif |
553 }; | 563 }; |
554 | 564 |
555 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 565 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |