| 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_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 6 #define WEBKIT_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 27 matching lines...) Expand all Loading... |
| 38 using WebKit::WGC3Dsizeiptr; | 38 using WebKit::WGC3Dsizeiptr; |
| 39 | 39 |
| 40 namespace webkit { | 40 namespace webkit { |
| 41 namespace gpu { | 41 namespace gpu { |
| 42 | 42 |
| 43 class GLInProcessContext; | 43 class GLInProcessContext; |
| 44 | 44 |
| 45 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl | 45 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
| 46 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { | 46 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
| 47 public: | 47 public: |
| 48 // Must be called before any WebGraphicsContext3DInProcessCommandBufferImpl |
| 49 // instances are created. Default value is false. |
| 50 static void EnableVirtualizedContext(); |
| 51 |
| 48 static WebGraphicsContext3DInProcessCommandBufferImpl* | 52 static WebGraphicsContext3DInProcessCommandBufferImpl* |
| 49 CreateViewContext( | 53 CreateViewContext( |
| 50 const WebKit::WebGraphicsContext3D::Attributes& attributes, | 54 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
| 51 gfx::AcceleratedWidget window); | 55 gfx::AcceleratedWidget window); |
| 52 | 56 |
| 53 static WebGraphicsContext3DInProcessCommandBufferImpl* | 57 static WebGraphicsContext3DInProcessCommandBufferImpl* |
| 54 CreateOffscreenContext( | 58 CreateOffscreenContext( |
| 55 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 59 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 56 | 60 |
| 57 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 61 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 void FlipVertically(uint8* framebuffer, | 585 void FlipVertically(uint8* framebuffer, |
| 582 unsigned int width, | 586 unsigned int width, |
| 583 unsigned int height); | 587 unsigned int height); |
| 584 }; | 588 }; |
| 585 | 589 |
| 586 } // namespace gpu | 590 } // namespace gpu |
| 587 } // namespace webkit | 591 } // namespace webkit |
| 588 | 592 |
| 589 #endif // defined(ENABLE_GPU) | 593 #endif // defined(ENABLE_GPU) |
| 590 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 594 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |