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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698