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

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

Issue 14318004: Add option to use GLContextVirtual in WGC3DIPCBI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use static enable function instead... Created 7 years, 8 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
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698