OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CHROME_RENDERER_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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 unsigned type, | 357 unsigned type, |
358 unsigned access); | 358 unsigned access); |
359 virtual void unmapTexSubImage2DCHROMIUM(const void*); | 359 virtual void unmapTexSubImage2DCHROMIUM(const void*); |
360 | 360 |
361 virtual void copyTextureToParentTextureCHROMIUM( | 361 virtual void copyTextureToParentTextureCHROMIUM( |
362 unsigned texture, unsigned parentTexture); | 362 unsigned texture, unsigned parentTexture); |
363 | 363 |
364 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); | 364 virtual WebKit::WebString getRequestableExtensionsCHROMIUM(); |
365 virtual void requestExtensionCHROMIUM(const char*); | 365 virtual void requestExtensionCHROMIUM(const char*); |
366 | 366 |
| 367 virtual void blitFramebufferCHROMIUM( |
| 368 int srcX0, int srcY0, int srcX1, int srcY1, |
| 369 int dstX0, int dstY0, int dstX1, int dstY1, |
| 370 unsigned mask, unsigned filter); |
| 371 virtual void renderbufferStorageMultisampleCHROMIUM( |
| 372 unsigned long target, int samples, unsigned internalformat, |
| 373 unsigned width, unsigned height); |
| 374 |
367 virtual unsigned createCompositorTexture(unsigned width, unsigned height); | 375 virtual unsigned createCompositorTexture(unsigned width, unsigned height); |
368 virtual void deleteCompositorTexture(unsigned parent_texture); | 376 virtual void deleteCompositorTexture(unsigned parent_texture); |
369 virtual void copyTextureToCompositor(unsigned texture, | 377 virtual void copyTextureToCompositor(unsigned texture, |
370 unsigned parent_texture); | 378 unsigned parent_texture); |
371 | 379 |
372 ggl::Context* context() { return context_; } | 380 ggl::Context* context() { return context_; } |
373 | 381 |
374 private: | 382 private: |
375 // SwapBuffers callback; | 383 // SwapBuffers callback; |
376 void OnSwapBuffers(); | 384 void OnSwapBuffers(); |
(...skipping 20 matching lines...) Expand all Loading... |
397 scoped_ptr<uint8> scanline_; | 405 scoped_ptr<uint8> scanline_; |
398 void FlipVertically(uint8* framebuffer, | 406 void FlipVertically(uint8* framebuffer, |
399 unsigned int width, | 407 unsigned int width, |
400 unsigned int height); | 408 unsigned int height); |
401 #endif | 409 #endif |
402 }; | 410 }; |
403 | 411 |
404 #endif // defined(ENABLE_GPU) | 412 #endif // defined(ENABLE_GPU) |
405 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 413 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
406 | 414 |
OLD | NEW |