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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 virtual WGC3Denum getGraphicsResetStatusARB(); | 454 virtual WGC3Denum getGraphicsResetStatusARB(); |
455 | 455 |
456 virtual void setSwapBuffersCompleteCallbackCHROMIUM( | 456 virtual void setSwapBuffersCompleteCallbackCHROMIUM( |
457 WebGraphicsContext3D:: | 457 WebGraphicsContext3D:: |
458 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); | 458 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); |
459 | 459 |
460 virtual void texImageIOSurface2DCHROMIUM( | 460 virtual void texImageIOSurface2DCHROMIUM( |
461 WGC3Denum target, WGC3Dint width, WGC3Dint height, | 461 WGC3Denum target, WGC3Dint width, WGC3Dint height, |
462 WGC3Duint ioSurfaceId, WGC3Duint plane); | 462 WGC3Duint ioSurfaceId, WGC3Duint plane); |
463 | 463 |
| 464 virtual void texStorage2DEXT( |
| 465 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, |
| 466 WGC3Dint width, WGC3Dint height); |
| 467 |
464 protected: | 468 protected: |
465 #if WEBKIT_USING_SKIA | 469 #if WEBKIT_USING_SKIA |
466 virtual GrGLInterface* onCreateGrGLInterface(); | 470 virtual GrGLInterface* onCreateGrGLInterface(); |
467 #endif | 471 #endif |
468 | 472 |
469 private: | 473 private: |
470 // Initialize the underlying GL context. May be called multiple times; second | 474 // Initialize the underlying GL context. May be called multiple times; second |
471 // and subsequent calls are ignored. Must be called from the thread that is | 475 // and subsequent calls are ignored. Must be called from the thread that is |
472 // going to use this object to issue GL commands (which might not be the main | 476 // going to use this object to issue GL commands (which might not be the main |
473 // thread). | 477 // thread). |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 522 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
519 scoped_array<uint8> scanline_; | 523 scoped_array<uint8> scanline_; |
520 void FlipVertically(uint8* framebuffer, | 524 void FlipVertically(uint8* framebuffer, |
521 unsigned int width, | 525 unsigned int width, |
522 unsigned int height); | 526 unsigned int height); |
523 #endif | 527 #endif |
524 }; | 528 }; |
525 | 529 |
526 #endif // defined(ENABLE_GPU) | 530 #endif // defined(ENABLE_GPU) |
527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 531 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |