| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #if defined(ENABLE_GPU) | 8 #if defined(ENABLE_GPU) |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl | 46 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
| 47 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { | 47 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
| 48 public: | 48 public: |
| 49 typedef scoped_ptr< ::gpu::GpuMemoryBuffer> GpuMemoryBufferCreator( | 49 typedef scoped_ptr< ::gpu::GpuMemoryBuffer> GpuMemoryBufferCreator( |
| 50 int width, int height); | 50 int width, int height); |
| 51 | 51 |
| 52 // Must be called before any WebGraphicsContext3DInProcessCommandBufferImpl | 52 // Must be called before any WebGraphicsContext3DInProcessCommandBufferImpl |
| 53 // instances are created. Default value is false. | 53 // instances are created. Default value is false. |
| 54 static void EnableVirtualizedContext(); | 54 static void EnableVirtualizedContext(); |
| 55 | 55 |
| 56 static WebGraphicsContext3DInProcessCommandBufferImpl* | 56 static scoped_ptr<WebKit::WebGraphicsContext3D> CreateViewContext( |
| 57 CreateViewContext( | 57 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 58 const WebKit::WebGraphicsContext3D::Attributes& attributes, | 58 gfx::AcceleratedWidget window); |
| 59 gfx::AcceleratedWidget window); | |
| 60 | 59 |
| 61 static WebGraphicsContext3DInProcessCommandBufferImpl* | 60 static scoped_ptr<WebKit::WebGraphicsContext3D> CreateOffscreenContext( |
| 62 CreateOffscreenContext( | 61 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 63 const WebKit::WebGraphicsContext3D::Attributes& attributes); | |
| 64 | 62 |
| 65 static void SetGpuMemoryBufferCreator(GpuMemoryBufferCreator* creator); | 63 static void SetGpuMemoryBufferCreator(GpuMemoryBufferCreator* creator); |
| 66 | 64 |
| 67 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 65 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
| 68 | 66 |
| 69 //---------------------------------------------------------------------- | 67 //---------------------------------------------------------------------- |
| 70 // WebGraphicsContext3D methods | 68 // WebGraphicsContext3D methods |
| 71 virtual bool makeContextCurrent(); | 69 virtual bool makeContextCurrent(); |
| 72 | 70 |
| 73 virtual int width(); | 71 virtual int width(); |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 void FlipVertically(uint8* framebuffer, | 594 void FlipVertically(uint8* framebuffer, |
| 597 unsigned int width, | 595 unsigned int width, |
| 598 unsigned int height); | 596 unsigned int height); |
| 599 }; | 597 }; |
| 600 | 598 |
| 601 } // namespace gpu | 599 } // namespace gpu |
| 602 } // namespace webkit | 600 } // namespace webkit |
| 603 | 601 |
| 604 #endif // defined(ENABLE_GPU) | 602 #endif // defined(ENABLE_GPU) |
| 605 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ | 603 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL
_H_ |
| OLD | NEW |