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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 111063003: Aura: Don't create GL context for CreateSharedSurfaceHandle() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try to make tests happy by still creating shared context Created 6 years, 11 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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 WebGraphicsContext3DCommandBufferImpl( 76 WebGraphicsContext3DCommandBufferImpl(
77 int surface_id, 77 int surface_id,
78 const GURL& active_url, 78 const GURL& active_url,
79 GpuChannelHost* host, 79 GpuChannelHost* host,
80 const Attributes& attributes, 80 const Attributes& attributes,
81 bool bind_generates_resources, 81 bool bind_generates_resources,
82 const SharedMemoryLimits& limits); 82 const SharedMemoryLimits& limits);
83 83
84 virtual ~WebGraphicsContext3DCommandBufferImpl(); 84 virtual ~WebGraphicsContext3DCommandBufferImpl();
85 85
86 // The following 3 IDs let one uniquely identify this context.
87 // Gets the GPU process ID for this context.
88 int GetGPUProcessID();
89
90 CommandBufferProxyImpl* GetCommandBufferProxy() { 86 CommandBufferProxyImpl* GetCommandBufferProxy() {
91 return command_buffer_.get(); 87 return command_buffer_.get();
92 } 88 }
93 89
94 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport(); 90 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport();
95 91
96 gpu::gles2::GLES2Implementation* GetImplementation() { 92 gpu::gles2::GLES2Implementation* GetImplementation() {
97 return real_gl_.get(); 93 return real_gl_.get();
98 } 94 }
99 95
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 Error last_error_; 723 Error last_error_;
728 bool bind_generates_resources_; 724 bool bind_generates_resources_;
729 SharedMemoryLimits mem_limits_; 725 SharedMemoryLimits mem_limits_;
730 726
731 uint32_t flush_id_; 727 uint32_t flush_id_;
732 }; 728 };
733 729
734 } // namespace content 730 } // namespace content
735 731
736 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 732 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/gpu_channel_host.cc ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698