Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Side by Side Diff: webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 23072008: aura: Allow in process ContextProvider to hold onscreen contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 30 matching lines...) Expand all
41 class GLInProcessContext; 41 class GLInProcessContext;
42 struct GLInProcessContextAttribs; 42 struct GLInProcessContextAttribs;
43 } 43 }
44 44
45 namespace webkit { 45 namespace webkit {
46 namespace gpu { 46 namespace gpu {
47 47
48 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl 48 class WEBKIT_GPU_EXPORT WebGraphicsContext3DInProcessCommandBufferImpl
49 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) { 49 : public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) {
50 public: 50 public:
51 static scoped_ptr<WebKit::WebGraphicsContext3D> CreateViewContext( 51 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
52 const WebKit::WebGraphicsContext3D::Attributes& attributes, 52 CreateViewContext(
53 gfx::AcceleratedWidget window); 53 const WebKit::WebGraphicsContext3D::Attributes& attributes,
54 gfx::AcceleratedWidget window);
54 55
55 static scoped_ptr<WebKit::WebGraphicsContext3D> CreateOffscreenContext( 56 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
56 const WebKit::WebGraphicsContext3D::Attributes& attributes); 57 CreateOffscreenContext(
58 const WebKit::WebGraphicsContext3D::Attributes& attributes);
57 59
58 static scoped_ptr<WebKit::WebGraphicsContext3D> WrapContext( 60 static scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl>
59 scoped_ptr< ::gpu::GLInProcessContext> context, 61 WrapContext(
60 const WebKit::WebGraphicsContext3D::Attributes& attributes); 62 scoped_ptr< ::gpu::GLInProcessContext> context,
63 const WebKit::WebGraphicsContext3D::Attributes& attributes);
61 64
62 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl(); 65 virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
63 66
64 // Convert WebGL context creation attributes into GLInProcessContext / EGL 67 // Convert WebGL context creation attributes into GLInProcessContext / EGL
65 // size requests. 68 // size requests.
66 static void ConvertAttributes( 69 static void ConvertAttributes(
67 const WebKit::WebGraphicsContext3D::Attributes& attributes, 70 const WebKit::WebGraphicsContext3D::Attributes& attributes,
68 ::gpu::GLInProcessContextAttribs* output_attribs); 71 ::gpu::GLInProcessContextAttribs* output_attribs);
69 72
70 //---------------------------------------------------------------------- 73 //----------------------------------------------------------------------
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 586
584 // Errors raised by synthesizeGLError(). 587 // Errors raised by synthesizeGLError().
585 std::vector<WGC3Denum> synthetic_errors_; 588 std::vector<WGC3Denum> synthetic_errors_;
586 }; 589 };
587 590
588 } // namespace gpu 591 } // namespace gpu
589 } // namespace webkit 592 } // namespace webkit
590 593
591 #endif // defined(ENABLE_GPU) 594 #endif // defined(ENABLE_GPU)
592 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_ 595 #endif // WEBKIT_COMMON_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698