| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 WGC3Dint yoffset, | 398 WGC3Dint yoffset, |
| 399 WGC3Dsizei width, | 399 WGC3Dsizei width, |
| 400 WGC3Dsizei height, | 400 WGC3Dsizei height, |
| 401 WGC3Denum format, | 401 WGC3Denum format, |
| 402 WGC3Denum type, | 402 WGC3Denum type, |
| 403 WGC3Denum access); | 403 WGC3Denum access); |
| 404 virtual void unmapTexSubImage2DCHROMIUM(const void*); | 404 virtual void unmapTexSubImage2DCHROMIUM(const void*); |
| 405 | 405 |
| 406 virtual void copyTextureToParentTextureCHROMIUM( | 406 virtual void copyTextureToParentTextureCHROMIUM( |
| 407 WebGLId texture, WebGLId parentTexture); | 407 WebGLId texture, WebGLId parentTexture); |
| 408 virtual void mapExternalTextureCHROMIUM( |
| 409 WebGLId source_texture, WebGraphicsContext3D* source_context, |
| 410 WebGLId destination_texture); |
| 408 | 411 |
| 409 virtual void rateLimitOffscreenContextCHROMIUM(); | 412 virtual void rateLimitOffscreenContextCHROMIUM(); |
| 410 | 413 |
| 411 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); | 414 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); |
| 412 virtual void requestExtensionCHROMIUM(const char*); | 415 virtual void requestExtensionCHROMIUM(const char*); |
| 413 | 416 |
| 414 virtual void blitFramebufferCHROMIUM( | 417 virtual void blitFramebufferCHROMIUM( |
| 415 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, | 418 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, |
| 416 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, | 419 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, |
| 417 WGC3Dbitfield mask, WGC3Denum filter); | 420 WGC3Dbitfield mask, WGC3Denum filter); |
| 418 virtual void renderbufferStorageMultisampleCHROMIUM( | 421 virtual void renderbufferStorageMultisampleCHROMIUM( |
| 419 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, | 422 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, |
| 420 WGC3Dsizei width, WGC3Dsizei height); | 423 WGC3Dsizei width, WGC3Dsizei height); |
| 421 | 424 |
| 422 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); | 425 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); |
| 423 virtual void deleteCompositorTexture(WebGLId parent_texture); | 426 virtual void deleteCompositorTexture(WebGLId parent_texture); |
| 424 virtual void copyTextureToCompositor(WebGLId texture, | 427 virtual void copyTextureToCompositor(WebGLId texture, |
| 425 WebGLId parent_texture); | 428 WebGLId parent_texture); |
| 426 | 429 |
| 427 virtual void setContextLostCallback( | 430 virtual void setContextLostCallback( |
| 428 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); | 431 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
| 429 virtual WGC3Denum getGraphicsResetStatusARB(); | 432 virtual WGC3Denum getGraphicsResetStatusARB(); |
| 430 | 433 |
| 434 GLInProcessContext* context() const { return context_; } |
| 435 |
| 431 private: | 436 private: |
| 432 // SwapBuffers callback. | 437 // SwapBuffers callback. |
| 433 void OnSwapBuffersComplete(); | 438 void OnSwapBuffersComplete(); |
| 434 virtual void OnContextLost(); | 439 virtual void OnContextLost(); |
| 435 | 440 |
| 436 // Used to try to find bugs in code that calls gl directly through the gl api | 441 // Used to try to find bugs in code that calls gl directly through the gl api |
| 437 // instead of going through WebGraphicsContext3D. | 442 // instead of going through WebGraphicsContext3D. |
| 438 void ClearContext(); | 443 void ClearContext(); |
| 439 | 444 |
| 440 // The context we use for OpenGL rendering. | 445 // The context we use for OpenGL rendering. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 468 #endif | 473 #endif |
| 469 }; | 474 }; |
| 470 | 475 |
| 471 } // namespace gpu | 476 } // namespace gpu |
| 472 } // namespace webkit | 477 } // namespace webkit |
| 473 | 478 |
| 474 #endif // defined(ENABLE_GPU) | 479 #endif // defined(ENABLE_GPU) |
| 475 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 480 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 476 | 481 |
| 477 | 482 |
| OLD | NEW |