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

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

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « crypto/wincrypt_shim.h ('k') | gpu/command_buffer/client/gl_in_process_context.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 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 "gl_in_process_context_export.h" 10 #include "gl_in_process_context_export.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 static GLInProcessContext* Create( 57 static GLInProcessContext* Create(
58 scoped_refptr<gpu::InProcessCommandBuffer::Service> service, 58 scoped_refptr<gpu::InProcessCommandBuffer::Service> service,
59 scoped_refptr<gfx::GLSurface> surface, 59 scoped_refptr<gfx::GLSurface> surface,
60 bool is_offscreen, 60 bool is_offscreen,
61 gfx::AcceleratedWidget window, 61 gfx::AcceleratedWidget window,
62 const gfx::Size& size, 62 const gfx::Size& size,
63 GLInProcessContext* share_context, 63 GLInProcessContext* share_context,
64 bool use_global_share_group, 64 bool use_global_share_group,
65 const gpu::gles2::ContextCreationAttribHelper& attribs, 65 const gpu::gles2::ContextCreationAttribHelper& attribs,
66 gfx::GpuPreference gpu_preference, 66 gfx::GpuPreference gpu_preference,
67 const GLInProcessContextSharedMemoryLimits& memory_limits); 67 const GLInProcessContextSharedMemoryLimits& memory_limits,
68 GpuMemoryBufferManager* gpu_memory_buffer_manager,
69 ImageFactory* image_factory);
68 70
69 virtual void SetContextLostCallback(const base::Closure& callback) = 0; 71 virtual void SetContextLostCallback(const base::Closure& callback) = 0;
70 72
71 // Allows direct access to the GLES2 implementation so a GLInProcessContext 73 // Allows direct access to the GLES2 implementation so a GLInProcessContext
72 // can be used without making it current. 74 // can be used without making it current.
73 virtual gles2::GLES2Implementation* GetImplementation() = 0; 75 virtual gles2::GLES2Implementation* GetImplementation() = 0;
74 76
75 virtual size_t GetMappedMemoryLimit() = 0; 77 virtual size_t GetMappedMemoryLimit() = 0;
76 78
77 #if defined(OS_ANDROID) 79 #if defined(OS_ANDROID)
78 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( 80 virtual scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture(
79 uint32 stream_id) = 0; 81 uint32 stream_id) = 0;
80 #endif 82 #endif
81 }; 83 };
82 84
83 } // namespace gpu 85 } // namespace gpu
84 86
85 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_ 87 #endif // GPU_COMMAND_BUFFER_CLIENT_GL_IN_PROCESS_CONTEXT_H_
OLDNEW
« no previous file with comments | « crypto/wincrypt_shim.h ('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