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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 RendererGLContext* context() { return context_; } | 423 RendererGLContext* context() { return context_; } |
424 | 424 |
425 virtual void setContextLostCallback( | 425 virtual void setContextLostCallback( |
426 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); | 426 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); |
427 virtual WGC3Denum getGraphicsResetStatusARB(); | 427 virtual WGC3Denum getGraphicsResetStatusARB(); |
428 | 428 |
429 virtual void setSwapBuffersCompleteCallbackCHROMIUM( | 429 virtual void setSwapBuffersCompleteCallbackCHROMIUM( |
430 WebGraphicsContext3D:: | 430 WebGraphicsContext3D:: |
431 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); | 431 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); |
432 | 432 |
| 433 #if WEBKIT_USING_SKIA |
| 434 virtual GrGLInterface* grGLInterface(); |
| 435 #endif |
| 436 |
433 private: | 437 private: |
434 // SwapBuffers callback. | 438 // SwapBuffers callback. |
435 void OnSwapBuffersComplete(); | 439 void OnSwapBuffersComplete(); |
436 virtual void OnContextLost(RendererGLContext::ContextLostReason reason); | 440 virtual void OnContextLost(RendererGLContext::ContextLostReason reason); |
437 | 441 |
438 // The context we use for OpenGL rendering. | 442 // The context we use for OpenGL rendering. |
439 RendererGLContext* context_; | 443 RendererGLContext* context_; |
440 // The GLES2Implementation we use for OpenGL rendering. | 444 // The GLES2Implementation we use for OpenGL rendering. |
441 gpu::gles2::GLES2Implementation* gl_; | 445 gpu::gles2::GLES2Implementation* gl_; |
442 | 446 |
(...skipping 24 matching lines...) Expand all Loading... |
467 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 471 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
468 scoped_array<uint8> scanline_; | 472 scoped_array<uint8> scanline_; |
469 void FlipVertically(uint8* framebuffer, | 473 void FlipVertically(uint8* framebuffer, |
470 unsigned int width, | 474 unsigned int width, |
471 unsigned int height); | 475 unsigned int height); |
472 #endif | 476 #endif |
473 }; | 477 }; |
474 | 478 |
475 #endif // defined(ENABLE_GPU) | 479 #endif // defined(ENABLE_GPU) |
476 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 480 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
OLD | NEW |