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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.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/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/idle_user_detector.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 void RenderWidgetCompositor::SetOverdrawBottomHeight( 354 void RenderWidgetCompositor::SetOverdrawBottomHeight(
355 float overdraw_bottom_height) { 355 float overdraw_bottom_height) {
356 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 356 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height);
357 } 357 }
358 358
359 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 359 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
360 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 360 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
361 } 361 }
362 362
363 void RenderWidgetCompositor::SetLatencyInfo( 363 void RenderWidgetCompositor::SetLatencyInfo(
364 const cc::LatencyInfo& latency_info) { 364 const ui::LatencyInfo& latency_info) {
365 layer_tree_host_->SetLatencyInfo(latency_info); 365 layer_tree_host_->SetLatencyInfo(latency_info);
366 } 366 }
367 367
368 bool RenderWidgetCompositor::initialize(cc::LayerTreeSettings settings) { 368 bool RenderWidgetCompositor::initialize(cc::LayerTreeSettings settings) {
369 scoped_ptr<cc::Thread> impl_thread; 369 scoped_ptr<cc::Thread> impl_thread;
370 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy = 370 scoped_refptr<base::MessageLoopProxy> compositor_message_loop_proxy =
371 RenderThreadImpl::current()->compositor_message_loop_proxy(); 371 RenderThreadImpl::current()->compositor_message_loop_proxy();
372 threaded_ = !!compositor_message_loop_proxy; 372 threaded_ = !!compositor_message_loop_proxy;
373 if (threaded_) { 373 if (threaded_) {
374 impl_thread = cc::ThreadImpl::CreateForDifferentThread( 374 impl_thread = cc::ThreadImpl::CreateForDifferentThread(
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
574 } 574 }
575 575
576 scoped_refptr<cc::ContextProvider> 576 scoped_refptr<cc::ContextProvider>
577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
578 return RenderThreadImpl::current()-> 578 return RenderThreadImpl::current()->
579 OffscreenContextProviderForCompositorThread(); 579 OffscreenContextProviderForCompositorThread();
580 } 580 }
581 581
582 } // namespace content 582 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/idle_user_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698