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 29 matching lines...) Expand all Loading... | |
40 namespace gpu { | 40 namespace gpu { |
41 class GLInProcessContext; | 41 class GLInProcessContext; |
42 } | 42 } |
43 | 43 |
44 namespace webkit { | 44 namespace webkit { |
45 namespace gpu { | 45 namespace gpu { |
46 | 46 |
47 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl | 47 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl |
48 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { | 48 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { |
49 public: | 49 public: |
50 static WebGraphicsContext3DInProcessCommandBufferImpl* | 50 static WebKit::WebGraphicsContext3D* |
jamesr
2013/06/19 23:07:16
not your fault, but this would be better if it ret
no sievers
2013/06/20 00:43:47
Done.
| |
51 CreateViewContext( | 51 CreateViewContext( |
52 const WebKit::WebGraphicsContext3D::Attributes& attributes, | 52 const WebKit::WebGraphicsContext3D::Attributes& attributes, |
53 gfx::AcceleratedWidget window); | 53 gfx::AcceleratedWidget window); |
54 | 54 |
55 static WebGraphicsContext3DInProcessCommandBufferImpl* | 55 static WebKit::WebGraphicsContext3D* |
56 CreateOffscreenContext( | 56 CreateOffscreenContext( |
57 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 57 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
58 | 58 |
59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); | 59 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); |
60 | 60 |
61 //---------------------------------------------------------------------- | 61 //---------------------------------------------------------------------- |
62 // WebGraphicsContext3D methods | 62 // WebGraphicsContext3D methods |
63 virtual bool makeContextCurrent(); | 63 virtual bool makeContextCurrent(); |
64 | 64 |
65 virtual int width(); | 65 virtual int width(); |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
583 void FlipVertically(uint8* framebuffer, | 583 void FlipVertically(uint8* framebuffer, |
584 unsigned int width, | 584 unsigned int width, |
585 unsigned int height); | 585 unsigned int height); |
586 }; | 586 }; |
587 | 587 |
588 } // namespace gpu | 588 } // namespace gpu |
589 } // namespace webkit | 589 } // namespace webkit |
590 | 590 |
591 #endif // defined(ENABLE_GPU) | 591 #endif // defined(ENABLE_GPU) |
592 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ | 592 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ |
OLD | NEW |