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

Side by Side Diff: gpu/command_buffer/client/gl_in_process_context.h

Issue 22066002: Add FBO support in Android WebView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove blank line 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 GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "gles2_impl_export.h" 10 #include "gles2_impl_export.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 #include "ui/gl/gl_surface.h"
12 #include "ui/gl/gpu_preference.h" 13 #include "ui/gl/gpu_preference.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 class Size; 16 class Size;
16 } 17 }
17 18
18 namespace gpu { 19 namespace gpu {
19 20
20 namespace gles2 { 21 namespace gles2 {
21 class GLES2Implementation; 22 class GLES2Implementation;
(...skipping 25 matching lines...) Expand all
47 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an 48 // Create a GLInProcessContext, if |is_offscreen| is true, renders to an
48 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list 49 // offscreen context. |attrib_list| must be NULL or a NONE-terminated list
49 // of attribute/value pairs. 50 // of attribute/value pairs.
50 static GLInProcessContext* CreateContext( 51 static GLInProcessContext* CreateContext(
51 bool is_offscreen, 52 bool is_offscreen,
52 gfx::AcceleratedWidget window, 53 gfx::AcceleratedWidget window,
53 const gfx::Size& size, 54 const gfx::Size& size,
54 bool share_resources, 55 bool share_resources,
55 const char* allowed_extensions, 56 const char* allowed_extensions,
56 const int32* attrib_list, 57 const int32* attrib_list,
57 gfx::GpuPreference gpu_preference, 58 gfx::GpuPreference gpu_preference);
58 const base::Closure& callback); 59
60 static GLInProcessContext* CreateWithSurface(
joth 2013/08/04 00:45:16 comment?
61 scoped_refptr<gfx::GLSurface> surface,
62 bool is_offscreen,
63 const gfx::Size& size,
64 bool share_resources,
65 const char* allowed_extensions,
66 const int32* attrib_list,
67 gfx::GpuPreference gpu_preference);
68
69 virtual void SetContextLostCallback(const base::Closure& callback) = 0;
59 70
60 virtual void SignalSyncPoint(unsigned sync_point, 71 virtual void SignalSyncPoint(unsigned sync_point,
61 const base::Closure& callback) = 0; 72 const base::Closure& callback) = 0;
62 73
63 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0; 74 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0;
64 75
65 // Allows direct access to the GLES2 implementation so a GLInProcessContext 76 // Allows direct access to the GLES2 implementation so a GLInProcessContext
66 // can be used without making it current. 77 // can be used without making it current.
67 virtual gles2::GLES2Implementation* GetImplementation() = 0; 78 virtual gles2::GLES2Implementation* GetImplementation() = 0;
68 }; 79 };
69 80
70 } // namespace gpu 81 } // namespace gpu
71 82
72 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 83 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698