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

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

Issue 23234003: Support stream textures with the synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android clang 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/gl_surface.h"
13 #include "ui/gl/gpu_preference.h" 13 #include "ui/gl/gpu_preference.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class Size; 16 class Size;
17 } 17 }
18 18
19 #if defined(OS_ANDROID)
20 namespace gfx {
21 class SurfaceTextureBridge;
22 }
23 #endif
24
19 namespace gpu { 25 namespace gpu {
20 26
21 namespace gles2 { 27 namespace gles2 {
22 class GLES2Implementation; 28 class GLES2Implementation;
23 } 29 }
24 30
25 // The default uninitialized value is -1. 31 // The default uninitialized value is -1.
26 struct GLES2_IMPL_EXPORT GLInProcessContextAttribs { 32 struct GLES2_IMPL_EXPORT GLInProcessContextAttribs {
27 GLInProcessContextAttribs(); 33 GLInProcessContextAttribs();
28 34
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void SetContextLostCallback(const base::Closure& callback) = 0; 72 virtual void SetContextLostCallback(const base::Closure& callback) = 0;
67 73
68 virtual void SignalSyncPoint(unsigned sync_point, 74 virtual void SignalSyncPoint(unsigned sync_point,
69 const base::Closure& callback) = 0; 75 const base::Closure& callback) = 0;
70 76
71 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0; 77 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0;
72 78
73 // Allows direct access to the GLES2 implementation so a GLInProcessContext 79 // Allows direct access to the GLES2 implementation so a GLInProcessContext
74 // can be used without making it current. 80 // can be used without making it current.
75 virtual gles2::GLES2Implementation* GetImplementation() = 0; 81 virtual gles2::GLES2Implementation* GetImplementation() = 0;
82
83 #if defined(OS_ANDROID)
84 virtual scoped_refptr<gfx::SurfaceTextureBridge> GetSurfaceTexture(
85 uint32 stream_id) = 0;
86 #endif
76 }; 87 };
77 88
78 } // namespace gpu 89 } // namespace gpu
79 90
80 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 91 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | gpu/command_buffer/client/gl_in_process_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698