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

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 1143433005: Remove gfx::FrameTime for a single clock source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handling patch for mac files Created 5 years, 7 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/single_thread_proxy.h" 5 #include "cc/trees/single_thread_proxy.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/profiler/scoped_tracker.h" 8 #include "base/profiler/scoped_tracker.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "cc/debug/benchmark_instrumentation.h" 10 #include "cc/debug/benchmark_instrumentation.h"
11 #include "cc/debug/devtools_instrumentation.h" 11 #include "cc/debug/devtools_instrumentation.h"
12 #include "cc/output/context_provider.h" 12 #include "cc/output/context_provider.h"
13 #include "cc/output/output_surface.h" 13 #include "cc/output/output_surface.h"
14 #include "cc/quads/draw_quad.h" 14 #include "cc/quads/draw_quad.h"
15 #include "cc/resources/prioritized_resource_manager.h" 15 #include "cc/resources/prioritized_resource_manager.h"
16 #include "cc/resources/resource_update_controller.h" 16 #include "cc/resources/resource_update_controller.h"
17 #include "cc/scheduler/commit_earlyout_reason.h" 17 #include "cc/scheduler/commit_earlyout_reason.h"
18 #include "cc/trees/layer_tree_host.h" 18 #include "cc/trees/layer_tree_host.h"
19 #include "cc/trees/layer_tree_host_single_thread_client.h" 19 #include "cc/trees/layer_tree_host_single_thread_client.h"
20 #include "cc/trees/layer_tree_impl.h" 20 #include "cc/trees/layer_tree_impl.h"
21 #include "cc/trees/scoped_abort_remaining_swap_promises.h" 21 #include "cc/trees/scoped_abort_remaining_swap_promises.h"
22 #include "ui/gfx/frame_time.h"
23 22
24 namespace cc { 23 namespace cc {
25 24
26 scoped_ptr<Proxy> SingleThreadProxy::Create( 25 scoped_ptr<Proxy> SingleThreadProxy::Create(
27 LayerTreeHost* layer_tree_host, 26 LayerTreeHost* layer_tree_host,
28 LayerTreeHostSingleThreadClient* client, 27 LayerTreeHostSingleThreadClient* client,
29 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 28 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
30 scoped_ptr<BeginFrameSource> external_begin_frame_source) { 29 scoped_ptr<BeginFrameSource> external_begin_frame_source) {
31 return make_scoped_ptr(new SingleThreadProxy( 30 return make_scoped_ptr(new SingleThreadProxy(
32 layer_tree_host, 31 layer_tree_host,
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 << "DidFinishImplFrame called while not inside an impl frame!"; 994 << "DidFinishImplFrame called while not inside an impl frame!";
996 inside_impl_frame_ = false; 995 inside_impl_frame_ = false;
997 #endif 996 #endif
998 } 997 }
999 998
1000 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) { 999 void SingleThreadProxy::SendBeginFramesToChildren(const BeginFrameArgs& args) {
1001 layer_tree_host_->SendBeginFramesToChildren(args); 1000 layer_tree_host_->SendBeginFramesToChildren(args);
1002 } 1001 }
1003 1002
1004 } // namespace cc 1003 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698