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

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

Issue 213743003: Pass GL context bind_generates_resources flag to GPU Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 base::Lock lock_; 116 base::Lock lock_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(ShareGroup); 118 DISALLOW_COPY_AND_ASSIGN(ShareGroup);
119 }; 119 };
120 120
121 WebGraphicsContext3DCommandBufferImpl( 121 WebGraphicsContext3DCommandBufferImpl(
122 int surface_id, 122 int surface_id,
123 const GURL& active_url, 123 const GURL& active_url,
124 GpuChannelHost* host, 124 GpuChannelHost* host,
125 const Attributes& attributes, 125 const Attributes& attributes,
126 bool bind_generates_resources,
127 bool lose_context_when_out_of_memory, 126 bool lose_context_when_out_of_memory,
128 const SharedMemoryLimits& limits, 127 const SharedMemoryLimits& limits,
129 WebGraphicsContext3DCommandBufferImpl* share_context); 128 WebGraphicsContext3DCommandBufferImpl* share_context);
130 129
131 virtual ~WebGraphicsContext3DCommandBufferImpl(); 130 virtual ~WebGraphicsContext3DCommandBufferImpl();
132 131
133 CommandBufferProxyImpl* GetCommandBufferProxy() { 132 CommandBufferProxyImpl* GetCommandBufferProxy() {
134 return command_buffer_.get(); 133 return command_buffer_.get();
135 } 134 }
136 135
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; 761 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_;
763 762
764 bool initialized_; 763 bool initialized_;
765 scoped_ptr<CommandBufferProxyImpl> command_buffer_; 764 scoped_ptr<CommandBufferProxyImpl> command_buffer_;
766 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_; 765 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_;
767 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; 766 scoped_ptr<gpu::TransferBuffer> transfer_buffer_;
768 gpu::gles2::GLES2Interface* gl_; 767 gpu::gles2::GLES2Interface* gl_;
769 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; 768 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_;
770 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; 769 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_;
771 Error last_error_; 770 Error last_error_;
772 bool bind_generates_resources_;
773 bool lose_context_when_out_of_memory_; 771 bool lose_context_when_out_of_memory_;
774 SharedMemoryLimits mem_limits_; 772 SharedMemoryLimits mem_limits_;
775 773
776 uint32_t flush_id_; 774 uint32_t flush_id_;
777 scoped_refptr<ShareGroup> share_group_; 775 scoped_refptr<ShareGroup> share_group_;
778 }; 776 };
779 777
780 } // namespace content 778 } // namespace content
781 779
782 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 780 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698