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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/hash.h" | 9 #include "base/hash.h" |
10 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 Send(reply_message); | 565 Send(reply_message); |
566 | 566 |
567 if (handle_.is_null() && !active_url_.is_empty()) { | 567 if (handle_.is_null() && !active_url_.is_empty()) { |
568 GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager(); | 568 GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager(); |
569 gpu_channel_manager->Send(new GpuHostMsg_DidCreateOffscreenContext( | 569 gpu_channel_manager->Send(new GpuHostMsg_DidCreateOffscreenContext( |
570 active_url_)); | 570 active_url_)); |
571 } | 571 } |
572 } | 572 } |
573 | 573 |
574 void GpuCommandBufferStub::OnSetLatencyInfo( | 574 void GpuCommandBufferStub::OnSetLatencyInfo( |
575 const cc::LatencyInfo& latency_info) { | 575 const ui::LatencyInfo& latency_info) { |
576 if (!latency_info_callback_.is_null()) | 576 if (!latency_info_callback_.is_null()) |
577 latency_info_callback_.Run(latency_info); | 577 latency_info_callback_.Run(latency_info); |
578 } | 578 } |
579 | 579 |
580 void GpuCommandBufferStub::SetLatencyInfoCallback( | 580 void GpuCommandBufferStub::SetLatencyInfoCallback( |
581 const LatencyInfoCallback& callback) { | 581 const LatencyInfoCallback& callback) { |
582 latency_info_callback_ = callback; | 582 latency_info_callback_ = callback; |
583 } | 583 } |
584 | 584 |
585 void GpuCommandBufferStub::OnSetGetBuffer(int32 shm_id, | 585 void GpuCommandBufferStub::OnSetGetBuffer(int32 shm_id, |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 if (surface_ && MakeCurrent()) | 939 if (surface_ && MakeCurrent()) |
940 surface_->SetFrontbufferAllocation( | 940 surface_->SetFrontbufferAllocation( |
941 allocation.browser_allocation.suggest_have_frontbuffer); | 941 allocation.browser_allocation.suggest_have_frontbuffer); |
942 } | 942 } |
943 | 943 |
944 last_memory_allocation_valid_ = true; | 944 last_memory_allocation_valid_ = true; |
945 last_memory_allocation_ = allocation; | 945 last_memory_allocation_ = allocation; |
946 } | 946 } |
947 | 947 |
948 } // namespace content | 948 } // namespace content |
OLD | NEW |