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

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: this time for real 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 class GpuMemoryBufferFactory; 31 class GpuMemoryBufferFactory;
26 32
27 // The default uninitialized value is -1. 33 // The default uninitialized value is -1.
28 struct GLES2_IMPL_EXPORT GLInProcessContextAttribs { 34 struct GLES2_IMPL_EXPORT GLInProcessContextAttribs {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void SetContextLostCallback(const base::Closure& callback) = 0; 77 virtual void SetContextLostCallback(const base::Closure& callback) = 0;
72 78
73 virtual void SignalSyncPoint(unsigned sync_point, 79 virtual void SignalSyncPoint(unsigned sync_point,
74 const base::Closure& callback) = 0; 80 const base::Closure& callback) = 0;
75 81
76 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0; 82 virtual void SignalQuery(unsigned query, const base::Closure& callback) = 0;
77 83
78 // Allows direct access to the GLES2 implementation so a GLInProcessContext 84 // Allows direct access to the GLES2 implementation so a GLInProcessContext
79 // can be used without making it current. 85 // can be used without making it current.
80 virtual gles2::GLES2Implementation* GetImplementation() = 0; 86 virtual gles2::GLES2Implementation* GetImplementation() = 0;
87
88 #if defined(OS_ANDROID)
89 virtual scoped_refptr<gfx::SurfaceTextureBridge> GetSurfaceTexture(
90 uint32 stream_id) = 0;
91 #endif
81 }; 92 };
82 93
83 } // namespace gpu 94 } // namespace gpu
84 95
85 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 96 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698