OLD | NEW |
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 #include "gpu/ipc/service/gpu_command_buffer_stub.h" | 5 #include "gpu/ipc/service/gpu_command_buffer_stub.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 new gles2::FeatureInfo(manager->gpu_driver_bug_workarounds()); | 462 new gles2::FeatureInfo(manager->gpu_driver_bug_workarounds()); |
463 gpu::GpuMemoryBufferFactory* gmb_factory = | 463 gpu::GpuMemoryBufferFactory* gmb_factory = |
464 channel_->gpu_channel_manager()->gpu_memory_buffer_factory(); | 464 channel_->gpu_channel_manager()->gpu_memory_buffer_factory(); |
465 context_group_ = new gles2::ContextGroup( | 465 context_group_ = new gles2::ContextGroup( |
466 manager->gpu_preferences(), channel_->mailbox_manager(), | 466 manager->gpu_preferences(), channel_->mailbox_manager(), |
467 new GpuCommandBufferMemoryTracker(channel_, | 467 new GpuCommandBufferMemoryTracker(channel_, |
468 command_buffer_id_.GetUnsafeValue()), | 468 command_buffer_id_.GetUnsafeValue()), |
469 manager->shader_translator_cache(), | 469 manager->shader_translator_cache(), |
470 manager->framebuffer_completeness_cache(), feature_info, | 470 manager->framebuffer_completeness_cache(), feature_info, |
471 init_params.attribs.bind_generates_resource, | 471 init_params.attribs.bind_generates_resource, |
472 gmb_factory ? gmb_factory->AsImageFactory() : nullptr); | 472 gmb_factory ? gmb_factory->AsImageFactory() : nullptr, |
| 473 channel_->watchdog() /* progress_reporter */); |
473 } | 474 } |
474 | 475 |
475 #if defined(OS_MACOSX) | 476 #if defined(OS_MACOSX) |
476 // Virtualize PreferIntegratedGpu contexts by default on OS X to prevent | 477 // Virtualize PreferIntegratedGpu contexts by default on OS X to prevent |
477 // performance regressions when enabling FCM. | 478 // performance regressions when enabling FCM. |
478 // http://crbug.com/180463 | 479 // http://crbug.com/180463 |
479 if (init_params.attribs.gpu_preference == gl::PreferIntegratedGpu) | 480 if (init_params.attribs.gpu_preference == gl::PreferIntegratedGpu) |
480 use_virtualized_gl_context_ = true; | 481 use_virtualized_gl_context_ = true; |
481 #endif | 482 #endif |
482 | 483 |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1113 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params)); | 1114 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params)); |
1114 } | 1115 } |
1115 | 1116 |
1116 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1117 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
1117 base::TimeDelta interval) { | 1118 base::TimeDelta interval) { |
1118 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1119 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
1119 interval)); | 1120 interval)); |
1120 } | 1121 } |
1121 | 1122 |
1122 } // namespace gpu | 1123 } // namespace gpu |
OLD | NEW |