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

Side by Side Diff: gpu/gles2_conform_support/egl/context.cc

Issue 1902453002: Revert of Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « gpu/config/gpu_driver_bug_workarounds.cc ('k') | gpu/gles2_conform_support/egl/display.h » ('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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/gles2_conform_support/egl/context.h" 5 #include "gpu/gles2_conform_support/egl/context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "gpu/command_buffer/client/gles2_implementation.h" 9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "gpu/command_buffer/client/gles2_lib.h" 10 #include "gpu/command_buffer/client/gles2_lib.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 bool Context::CreateService(gfx::GLSurface* gl_surface) { 251 bool Context::CreateService(gfx::GLSurface* gl_surface) {
252 scoped_refptr<gpu::TransferBufferManager> transfer_buffer_manager( 252 scoped_refptr<gpu::TransferBufferManager> transfer_buffer_manager(
253 new gpu::TransferBufferManager(nullptr)); 253 new gpu::TransferBufferManager(nullptr));
254 transfer_buffer_manager->Initialize(); 254 transfer_buffer_manager->Initialize();
255 255
256 scoped_ptr<gpu::CommandBufferService> command_buffer( 256 scoped_ptr<gpu::CommandBufferService> command_buffer(
257 new gpu::CommandBufferService(transfer_buffer_manager.get())); 257 new gpu::CommandBufferService(transfer_buffer_manager.get()));
258 if (!command_buffer->Initialize()) 258 if (!command_buffer->Initialize())
259 return false; 259 return false;
260 260
261 scoped_refptr<gpu::gles2::FeatureInfo> feature_info =
262 new gpu::gles2::FeatureInfo(display_->gpu_driver_bug_workarounds());
263 scoped_refptr<gpu::gles2::ContextGroup> group(new gpu::gles2::ContextGroup( 261 scoped_refptr<gpu::gles2::ContextGroup> group(new gpu::gles2::ContextGroup(
264 gpu_preferences_, nullptr, nullptr, 262 gpu_preferences_, nullptr, nullptr,
265 new gpu::gles2::ShaderTranslatorCache(gpu_preferences_), 263 new gpu::gles2::ShaderTranslatorCache(gpu_preferences_),
266 new gpu::gles2::FramebufferCompletenessCache, feature_info, nullptr, 264 new gpu::gles2::FramebufferCompletenessCache, nullptr, nullptr, nullptr,
267 nullptr, true)); 265 true));
268 266
269 scoped_ptr<gpu::gles2::GLES2Decoder> decoder( 267 scoped_ptr<gpu::gles2::GLES2Decoder> decoder(
270 gpu::gles2::GLES2Decoder::Create(group.get())); 268 gpu::gles2::GLES2Decoder::Create(group.get()));
271 if (!decoder.get()) 269 if (!decoder.get())
272 return false; 270 return false;
273 271
274 scoped_ptr<gpu::CommandExecutor> command_executor(new gpu::CommandExecutor( 272 scoped_ptr<gpu::CommandExecutor> command_executor(new gpu::CommandExecutor(
275 command_buffer.get(), decoder.get(), decoder.get())); 273 command_buffer.get(), decoder.get(), decoder.get()));
276 274
277 decoder->set_engine(command_executor.get()); 275 decoder->set_engine(command_executor.get());
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 return false; 389 return false;
392 if (!gl_context_->MakeCurrent(gl_surface)) { 390 if (!gl_context_->MakeCurrent(gl_surface)) {
393 MarkServiceContextLost(); 391 MarkServiceContextLost();
394 return false; 392 return false;
395 } 393 }
396 client_gl_context_->Flush(); 394 client_gl_context_->Flush();
397 return true; 395 return true;
398 } 396 }
399 397
400 } // namespace egl 398 } // namespace egl
OLDNEW
« no previous file with comments | « gpu/config/gpu_driver_bug_workarounds.cc ('k') | gpu/gles2_conform_support/egl/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698