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 "content/common/gpu/gpu_channel.h" | 5 #include "content/common/gpu/gpu_channel.h" |
6 | 6 |
7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
8 #include <windows.h> | 8 #include <windows.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 sync_point_manager_(sync_point_manager), | 231 sync_point_manager_(sync_point_manager), |
232 task_runner_(task_runner), | 232 task_runner_(task_runner), |
233 a_stub_is_descheduled_(false), | 233 a_stub_is_descheduled_(false), |
234 future_sync_points_(future_sync_points) {} | 234 future_sync_points_(future_sync_points) {} |
235 | 235 |
236 GpuChannelMessageFilter::~GpuChannelMessageFilter() {} | 236 GpuChannelMessageFilter::~GpuChannelMessageFilter() {} |
237 | 237 |
238 void GpuChannelMessageFilter::OnFilterAdded(IPC::Sender* sender) { | 238 void GpuChannelMessageFilter::OnFilterAdded(IPC::Sender* sender) { |
239 DCHECK(!sender_); | 239 DCHECK(!sender_); |
240 sender_ = sender; | 240 sender_ = sender; |
241 timer_ = make_scoped_ptr(new base::OneShotTimer<GpuChannelMessageFilter>); | 241 timer_ = make_scoped_ptr(new base::OneShotTimer); |
242 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { | 242 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { |
243 filter->OnFilterAdded(sender_); | 243 filter->OnFilterAdded(sender_); |
244 } | 244 } |
245 } | 245 } |
246 | 246 |
247 void GpuChannelMessageFilter::OnFilterRemoved() { | 247 void GpuChannelMessageFilter::OnFilterRemoved() { |
248 DCHECK(sender_); | 248 DCHECK(sender_); |
249 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { | 249 for (scoped_refptr<IPC::MessageFilter>& filter : channel_filters_) { |
250 filter->OnFilterRemoved(); | 250 filter->OnFilterRemoved(); |
251 } | 251 } |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 } | 1073 } |
1074 } | 1074 } |
1075 } | 1075 } |
1076 | 1076 |
1077 void GpuChannel::HandleUpdateValueState( | 1077 void GpuChannel::HandleUpdateValueState( |
1078 unsigned int target, const gpu::ValueState& state) { | 1078 unsigned int target, const gpu::ValueState& state) { |
1079 pending_valuebuffer_state_->UpdateState(target, state); | 1079 pending_valuebuffer_state_->UpdateState(target, state); |
1080 } | 1080 } |
1081 | 1081 |
1082 } // namespace content | 1082 } // namespace content |
OLD | NEW |