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

Side by Side Diff: gpu/ipc/in_process_command_buffer.cc

Issue 2615573002: Add disable_program_caching_for_transform_feedback workaround. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/ipc/service/gpu_channel_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "gpu/ipc/in_process_command_buffer.h" 5 #include "gpu/ipc/in_process_command_buffer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 mailbox_manager_ = gles2::MailboxManager::Create(gpu_preferences()); 162 mailbox_manager_ = gles2::MailboxManager::Create(gpu_preferences());
163 } 163 }
164 return mailbox_manager_; 164 return mailbox_manager_;
165 } 165 }
166 166
167 gpu::gles2::ProgramCache* InProcessCommandBuffer::Service::program_cache() { 167 gpu::gles2::ProgramCache* InProcessCommandBuffer::Service::program_cache() {
168 if (!program_cache_.get() && 168 if (!program_cache_.get() &&
169 (gl::g_driver_gl.ext.b_GL_ARB_get_program_binary || 169 (gl::g_driver_gl.ext.b_GL_ARB_get_program_binary ||
170 gl::g_driver_gl.ext.b_GL_OES_get_program_binary) && 170 gl::g_driver_gl.ext.b_GL_OES_get_program_binary) &&
171 !gpu_preferences().disable_gpu_program_cache) { 171 !gpu_preferences().disable_gpu_program_cache) {
172 const GpuDriverBugWorkarounds& workarounds = gpu_driver_bug_workarounds_;
172 bool disable_disk_cache = 173 bool disable_disk_cache =
173 gpu_preferences_.disable_gpu_shader_disk_cache || 174 gpu_preferences_.disable_gpu_shader_disk_cache ||
174 gpu_driver_bug_workarounds_.disable_program_disk_cache; 175 workarounds.disable_program_disk_cache;
175 program_cache_.reset(new gles2::MemoryProgramCache( 176 program_cache_.reset(new gles2::MemoryProgramCache(
176 gpu_preferences_.gpu_program_cache_size, disable_disk_cache)); 177 gpu_preferences_.gpu_program_cache_size,
178 disable_disk_cache,
179 workarounds.disable_program_caching_for_transform_feedback));
177 } 180 }
178 return program_cache_.get(); 181 return program_cache_.get();
179 } 182 }
180 183
181 InProcessCommandBuffer::InProcessCommandBuffer( 184 InProcessCommandBuffer::InProcessCommandBuffer(
182 const scoped_refptr<Service>& service) 185 const scoped_refptr<Service>& service)
183 : command_buffer_id_( 186 : command_buffer_id_(
184 CommandBufferId::FromUnsafeValue(g_next_command_buffer_id.GetNext())), 187 CommandBufferId::FromUnsafeValue(g_next_command_buffer_id.GetNext())),
185 delayed_work_pending_(false), 188 delayed_work_pending_(false),
186 image_factory_(nullptr), 189 image_factory_(nullptr),
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 return wrapped_callback; 1168 return wrapped_callback;
1166 } 1169 }
1167 1170
1168 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback, 1171 InProcessCommandBuffer::GpuTask::GpuTask(const base::Closure& callback,
1169 uint32_t order_number) 1172 uint32_t order_number)
1170 : callback(callback), order_number(order_number) {} 1173 : callback(callback), order_number(order_number) {}
1171 1174
1172 InProcessCommandBuffer::GpuTask::~GpuTask() {} 1175 InProcessCommandBuffer::GpuTask::~GpuTask() {}
1173 1176
1174 } // namespace gpu 1177 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/config/gpu_driver_bug_workaround_type.h ('k') | gpu/ipc/service/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698