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