| 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 CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 virtual void requestExtensionCHROMIUM(const char*); | 414 virtual void requestExtensionCHROMIUM(const char*); |
| 415 | 415 |
| 416 virtual void blitFramebufferCHROMIUM( | 416 virtual void blitFramebufferCHROMIUM( |
| 417 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, | 417 WGC3Dint srcX0, WGC3Dint srcY0, WGC3Dint srcX1, WGC3Dint srcY1, |
| 418 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, | 418 WGC3Dint dstX0, WGC3Dint dstY0, WGC3Dint dstX1, WGC3Dint dstY1, |
| 419 WGC3Dbitfield mask, WGC3Denum filter); | 419 WGC3Dbitfield mask, WGC3Denum filter); |
| 420 virtual void renderbufferStorageMultisampleCHROMIUM( | 420 virtual void renderbufferStorageMultisampleCHROMIUM( |
| 421 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, | 421 WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, |
| 422 WGC3Dsizei width, WGC3Dsizei height); | 422 WGC3Dsizei width, WGC3Dsizei height); |
| 423 | 423 |
| 424 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); | |
| 425 virtual void deleteCompositorTexture(WebGLId parent_texture); | |
| 426 virtual void copyTextureToCompositor(WebGLId texture, | |
| 427 WebGLId parent_texture); | |
| 428 | |
| 429 RendererGLContext* context() { return context_; } | 424 RendererGLContext* context() { return context_; } |
| 430 | 425 |
| 431 virtual void setContextLostCallback( | 426 virtual void setContextLostCallback( |
| 432 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); | 427 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
| 433 | 428 |
| 434 private: | 429 private: |
| 435 // SwapBuffers callback. | 430 // SwapBuffers callback. |
| 436 void OnSwapBuffersComplete(); | 431 void OnSwapBuffersComplete(); |
| 437 virtual void OnContextLost(); | 432 virtual void OnContextLost(); |
| 438 | 433 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 461 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 456 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 462 scoped_array<uint8> scanline_; | 457 scoped_array<uint8> scanline_; |
| 463 void FlipVertically(uint8* framebuffer, | 458 void FlipVertically(uint8* framebuffer, |
| 464 unsigned int width, | 459 unsigned int width, |
| 465 unsigned int height); | 460 unsigned int height); |
| 466 #endif | 461 #endif |
| 467 }; | 462 }; |
| 468 | 463 |
| 469 #endif // defined(ENABLE_GPU) | 464 #endif // defined(ENABLE_GPU) |
| 470 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 465 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |