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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 RendererGLContext* context() { return context_; } | 450 RendererGLContext* context() { return context_; } |
451 | 451 |
452 virtual void setContextLostCallback( | 452 virtual void setContextLostCallback( |
453 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); | 453 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
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( |
| 461 WGC3Denum target, WGC3Dint width, WGC3Dint height, |
| 462 WGC3Duint ioSurfaceId, WGC3Duint plane); |
| 463 |
460 protected: | 464 protected: |
461 #if WEBKIT_USING_SKIA | 465 #if WEBKIT_USING_SKIA |
462 virtual GrGLInterface* onCreateGrGLInterface(); | 466 virtual GrGLInterface* onCreateGrGLInterface(); |
463 #endif | 467 #endif |
464 | 468 |
465 private: | 469 private: |
466 // Initialize the underlying GL context. May be called multiple times; second | 470 // Initialize the underlying GL context. May be called multiple times; second |
467 // and subsequent calls are ignored. Must be called from the thread that is | 471 // and subsequent calls are ignored. Must be called from the thread that is |
468 // going to use this object to issue GL commands (which might not be the main | 472 // going to use this object to issue GL commands (which might not be the main |
469 // thread). | 473 // thread). |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 518 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
515 scoped_array<uint8> scanline_; | 519 scoped_array<uint8> scanline_; |
516 void FlipVertically(uint8* framebuffer, | 520 void FlipVertically(uint8* framebuffer, |
517 unsigned int width, | 521 unsigned int width, |
518 unsigned int height); | 522 unsigned int height); |
519 #endif | 523 #endif |
520 }; | 524 }; |
521 | 525 |
522 #endif // defined(ENABLE_GPU) | 526 #endif // defined(ENABLE_GPU) |
523 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 527 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |