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

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

Issue 194543002: Removing base::Time from SetAnimationEvents and PostAnimationEventsToMainThreadOnImplThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unused last_animation_time_ as well. Created 6 years, 9 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
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.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 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/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/debug/benchmark_instrumentation.h" 9 #include "cc/debug/benchmark_instrumentation.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { 316 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() {
317 // Impl-side painting only. 317 // Impl-side painting only.
318 NOTREACHED(); 318 NOTREACHED();
319 } 319 }
320 320
321 void SingleThreadProxy::SetNeedsCommitOnImplThread() { 321 void SingleThreadProxy::SetNeedsCommitOnImplThread() {
322 client_->ScheduleComposite(); 322 client_->ScheduleComposite();
323 } 323 }
324 324
325 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread( 325 void SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread(
326 scoped_ptr<AnimationEventsVector> events, 326 scoped_ptr<AnimationEventsVector> events) {
327 base::Time wall_clock_time) {
328 TRACE_EVENT0( 327 TRACE_EVENT0(
329 "cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread"); 328 "cc", "SingleThreadProxy::PostAnimationEventsToMainThreadOnImplThread");
330 DCHECK(Proxy::IsImplThread()); 329 DCHECK(Proxy::IsImplThread());
331 DebugScopedSetMainThread main(this); 330 DebugScopedSetMainThread main(this);
332 layer_tree_host_->SetAnimationEvents(events.Pass(), wall_clock_time); 331 layer_tree_host_->SetAnimationEvents(events.Pass());
333 } 332 }
334 333
335 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread( 334 bool SingleThreadProxy::ReduceContentsTextureMemoryOnImplThread(
336 size_t limit_bytes, 335 size_t limit_bytes,
337 int priority_cutoff) { 336 int priority_cutoff) {
338 DCHECK(IsImplThread()); 337 DCHECK(IsImplThread());
339 PrioritizedResourceManager* contents_texture_manager = 338 PrioritizedResourceManager* contents_texture_manager =
340 layer_tree_host_->contents_texture_manager(); 339 layer_tree_host_->contents_texture_manager();
341 340
342 ResourceProvider* resource_provider = 341 ResourceProvider* resource_provider =
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 void SingleThreadProxy::DidSwapFrame() { 565 void SingleThreadProxy::DidSwapFrame() {
567 if (next_frame_is_newly_committed_frame_) { 566 if (next_frame_is_newly_committed_frame_) {
568 next_frame_is_newly_committed_frame_ = false; 567 next_frame_is_newly_committed_frame_ = false;
569 layer_tree_host_->DidCommitAndDrawFrame(); 568 layer_tree_host_->DidCommitAndDrawFrame();
570 } 569 }
571 } 570 }
572 571
573 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 572 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
574 573
575 } // namespace cc 574 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.h ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698