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

Side by Side Diff: cc/thread_proxy.cc

Issue 11361223: cc: Remove cc::settings, move them to LayerTreeSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using WebLayerTreeSettings for things WebKit can set Created 8 years, 1 month 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
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/thread_proxy.h" 5 #include "cc/thread_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "cc/delay_based_time_source.h" 9 #include "cc/delay_based_time_source.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time) 832 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time)
833 { 833 {
834 if (!m_currentResourceUpdateControllerOnImplThread) 834 if (!m_currentResourceUpdateControllerOnImplThread)
835 return; 835 return;
836 836
837 ResourceProvider::debugNotifyEnterZone(0x5000000); 837 ResourceProvider::debugNotifyEnterZone(0x5000000);
838 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time); 838 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time);
839 ResourceProvider::debugNotifyLeaveZone(); 839 ResourceProvider::debugNotifyLeaveZone();
840 } 840 }
841 841
842 const LayerTreeSettings& ThreadProxy::settings() const
843 {
844 DCHECK(isImplThread());
845 return m_layerTreeHostImpl->settings();
846 }
847
842 void ThreadProxy::readyToFinalizeTextureUpdates() 848 void ThreadProxy::readyToFinalizeTextureUpdates()
843 { 849 {
844 DCHECK(isImplThread()); 850 DCHECK(isImplThread());
845 m_schedulerOnImplThread->beginFrameComplete(); 851 m_schedulerOnImplThread->beginFrameComplete();
846 } 852 }
847 853
848 void ThreadProxy::didCommitAndDrawFrame() 854 void ThreadProxy::didCommitAndDrawFrame()
849 { 855 {
850 DCHECK(isMainThread()); 856 DCHECK(isMainThread());
851 if (!m_layerTreeHost) 857 if (!m_layerTreeHost)
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 987
982 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() 988 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState()
983 { 989 {
984 } 990 }
985 991
986 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() 992 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState()
987 { 993 {
988 } 994 }
989 995
990 } // namespace cc 996 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698