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

Unified Diff: gpu/ipc/service/gpu_channel_manager.cc

Issue 2818993002: GL Implementation for GPU Discardable
Patch Set: rebase Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_channel_manager.cc
diff --git a/gpu/ipc/service/gpu_channel_manager.cc b/gpu/ipc/service/gpu_channel_manager.cc
index 14779657bae903d01b2e16b710eb82bc10e8dc53..8a9ea12561bb8ea3534086fa868fe1421dbf569e 100644
--- a/gpu/ipc/service/gpu_channel_manager.cc
+++ b/gpu/ipc/service/gpu_channel_manager.cc
@@ -66,6 +66,7 @@ GpuChannelManager::GpuChannelManager(
sync_point_manager_(sync_point_manager),
gpu_memory_buffer_factory_(gpu_memory_buffer_factory),
gpu_feature_info_(gpu_feature_info),
+ discardable_manager_(new ServiceDiscardableManager()),
exiting_for_lost_context_(false),
activity_flags_(std::move(activity_flags)),
weak_factory_(this) {
@@ -131,7 +132,7 @@ GpuChannel* GpuChannelManager::EstablishChannel(int client_id,
bool is_gpu_host) {
std::unique_ptr<GpuChannel> gpu_channel = base::MakeUnique<GpuChannel>(
this, sync_point_manager_, watchdog_, share_group_, mailbox_manager_,
- is_gpu_host ? preemption_flag_ : nullptr,
+ discardable_manager_, is_gpu_host ? preemption_flag_ : nullptr,
is_gpu_host ? nullptr : preemption_flag_, task_runner_, io_task_runner_,
client_id, client_tracing_id, is_gpu_host);
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698