| 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> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "webkit/gpu/webkit_gpu_export.h" |
| 16 | 18 |
| 17 #if defined(USE_SKIA) | 19 #if defined(USE_SKIA) |
| 18 #define FLIP_FRAMEBUFFER_VERTICALLY | 20 #define FLIP_FRAMEBUFFER_VERTICALLY |
| 19 #endif | 21 #endif |
| 20 | 22 |
| 21 namespace gpu { | 23 namespace gpu { |
| 22 namespace gles2 { | 24 namespace gles2 { |
| 23 class GLES2Implementation; | 25 class GLES2Implementation; |
| 24 } | 26 } |
| 25 } | 27 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 37 using WebKit::WGC3Dfloat; | 39 using WebKit::WGC3Dfloat; |
| 38 using WebKit::WGC3Dclampf; | 40 using WebKit::WGC3Dclampf; |
| 39 using WebKit::WGC3Dintptr; | 41 using WebKit::WGC3Dintptr; |
| 40 using WebKit::WGC3Dsizeiptr; | 42 using WebKit::WGC3Dsizeiptr; |
| 41 | 43 |
| 42 namespace webkit { | 44 namespace webkit { |
| 43 namespace gpu { | 45 namespace gpu { |
| 44 | 46 |
| 45 class GLInProcessContext; | 47 class GLInProcessContext; |
| 46 | 48 |
| 47 class WebGraphicsContext3DInProcessCommandBufferImpl | 49 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
| 48 : public WebKit::WebGraphicsContext3D { | 50 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
| 49 public: | 51 public: |
| 50 | 52 |
| 51 WebGraphicsContext3DInProcessCommandBufferImpl(); | 53 WebGraphicsContext3DInProcessCommandBufferImpl(); |
| 52 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 54 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
| 53 | 55 |
| 54 bool Initialize(WebKit::WebGraphicsContext3D::Attributes attributes, | 56 bool Initialize(WebKit::WebGraphicsContext3D::Attributes attributes, |
| 55 WebKit::WebGraphicsContext3D* view_context); | 57 WebKit::WebGraphicsContext3D* view_context); |
| 56 | 58 |
| 57 //---------------------------------------------------------------------- | 59 //---------------------------------------------------------------------- |
| 58 // WebGraphicsContext3D methods | 60 // WebGraphicsContext3D methods |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 unsigned int width, | 537 unsigned int width, |
| 536 unsigned int height); | 538 unsigned int height); |
| 537 #endif | 539 #endif |
| 538 }; | 540 }; |
| 539 | 541 |
| 540 } // namespace gpu | 542 } // namespace gpu |
| 541 } // namespace webkit | 543 } // namespace webkit |
| 542 | 544 |
| 543 #endif // defined(ENABLE_GPU) | 545 #endif // defined(ENABLE_GPU) |
| 544 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ | 546 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |