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

Side by Side Diff: cc/layer_tree_host.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void LayerTreeHost::startPageScaleAnimation(gfx::Vector2d targetOffset, bool use Anchor, float scale, base::TimeDelta duration) 527 void LayerTreeHost::startPageScaleAnimation(gfx::Vector2d targetOffset, bool use Anchor, float scale, base::TimeDelta duration)
528 { 528 {
529 m_proxy->StartPageScaleAnimation(targetOffset, useAnchor, scale, duration); 529 m_proxy->StartPageScaleAnimation(targetOffset, useAnchor, scale, duration);
530 } 530 }
531 531
532 PrioritizedResourceManager* LayerTreeHost::contentsTextureManager() const 532 PrioritizedResourceManager* LayerTreeHost::contentsTextureManager() const
533 { 533 {
534 return m_contentsTextureManager.get(); 534 return m_contentsTextureManager.get();
535 } 535 }
536 536
537 void LayerTreeHost::composite() 537 void LayerTreeHost::composite(base::TimeTicks frameBeginTime)
538 { 538 {
539 if (!m_proxy->HasImplThread()) 539 if (!m_proxy->HasImplThread())
540 static_cast<SingleThreadProxy*>(m_proxy.get())->CompositeImmediately(); 540 static_cast<SingleThreadProxy*>(m_proxy.get())->CompositeImmediately(fra meBeginTime);
541 else 541 else
542 setNeedsCommit(); 542 setNeedsCommit();
543 } 543 }
544 544
545 void LayerTreeHost::scheduleComposite() 545 void LayerTreeHost::scheduleComposite()
546 { 546 {
547 m_client->scheduleComposite(); 547 m_client->scheduleComposite();
548 } 548 }
549 549
550 bool LayerTreeHost::initializeRendererIfNeeded() 550 bool LayerTreeHost::initializeRendererIfNeeded()
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) 910 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex)
911 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); 911 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
912 } 912 }
913 913
914 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture() 914 skia::RefPtr<SkPicture> LayerTreeHost::capturePicture()
915 { 915 {
916 return m_proxy->CapturePicture(); 916 return m_proxy->CapturePicture();
917 } 917 }
918 918
919 } // namespace cc 919 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/layer_tree_host_impl.h » ('j') | cc/layer_tree_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698