| Index: content/common/gpu/gpu_channel.cc
|
| ===================================================================
|
| --- content/common/gpu/gpu_channel.cc (revision 137679)
|
| +++ content/common/gpu/gpu_channel.cc (working copy)
|
| @@ -179,6 +179,11 @@
|
| int32 surface_id,
|
| const GPUCreateCommandBufferConfig& init_params,
|
| int32* route_id) {
|
| + TRACE_EVENT1("gpu",
|
| + "GpuChannel::CreateViewCommandBuffer",
|
| + "surface_id",
|
| + surface_id);
|
| +
|
| *route_id = MSG_ROUTING_NONE;
|
| content::GetContentClient()->SetActiveURL(init_params.active_url);
|
|
|
| @@ -336,6 +341,8 @@
|
| const gfx::Size& size,
|
| const GPUCreateCommandBufferConfig& init_params,
|
| IPC::Message* reply_message) {
|
| + TRACE_EVENT0("gpu", "GpuChannel::OnCreateOffscreenCommandBuffer");
|
| +
|
| int32 route_id = MSG_ROUTING_NONE;
|
|
|
| content::GetContentClient()->SetActiveURL(init_params.active_url);
|
| @@ -373,9 +380,9 @@
|
|
|
| void GpuChannel::OnDestroyCommandBuffer(int32 route_id,
|
| IPC::Message* reply_message) {
|
| -#if defined(ENABLE_GPU)
|
| TRACE_EVENT1("gpu", "GpuChannel::OnDestroyCommandBuffer",
|
| "route_id", route_id);
|
| +
|
| if (router_.ResolveRoute(route_id)) {
|
| GpuCommandBufferStub* stub = stubs_.Lookup(route_id);
|
| bool need_reschedule = (stub && !stub->IsScheduled());
|
| @@ -389,7 +396,6 @@
|
| OnScheduled();
|
| DidDestroyCommandBuffer(gpu_preference);
|
| }
|
| -#endif
|
|
|
| if (reply_message)
|
| Send(reply_message);
|
|
|