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

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: 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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 } 822 }
823 823
824 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time) 824 void ThreadProxy::didAnticipatedDrawTimeChange(base::TimeTicks time)
825 { 825 {
826 if (!m_currentResourceUpdateControllerOnImplThread) 826 if (!m_currentResourceUpdateControllerOnImplThread)
827 return; 827 return;
828 828
829 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time); 829 m_currentResourceUpdateControllerOnImplThread->performMoreUpdates(time);
830 } 830 }
831 831
832 const LayerTreeSettings& ThreadProxy::settings() const
833 {
834 DCHECK(isImplThread());
835 return m_layerTreeHostImpl->settings();
836 }
837
832 void ThreadProxy::readyToFinalizeTextureUpdates() 838 void ThreadProxy::readyToFinalizeTextureUpdates()
833 { 839 {
834 DCHECK(isImplThread()); 840 DCHECK(isImplThread());
835 m_schedulerOnImplThread->beginFrameComplete(); 841 m_schedulerOnImplThread->beginFrameComplete();
836 } 842 }
837 843
838 void ThreadProxy::didCommitAndDrawFrame() 844 void ThreadProxy::didCommitAndDrawFrame()
839 { 845 {
840 DCHECK(isMainThread()); 846 DCHECK(isMainThread());
841 if (!m_layerTreeHost) 847 if (!m_layerTreeHost)
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
967 973
968 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState() 974 ThreadProxy::BeginFrameAndCommitState::BeginFrameAndCommitState()
969 { 975 {
970 } 976 }
971 977
972 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState() 978 ThreadProxy::BeginFrameAndCommitState::~BeginFrameAndCommitState()
973 { 979 {
974 } 980 }
975 981
976 } // namespace cc 982 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698