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

Side by Side Diff: cc/layer_impl.cc

Issue 11138029: cc: Remove wtf includes from layer_impl.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android build Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_impl.h ('k') | cc/scrollbar_animation_controller.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 "config.h" 5 #include "config.h"
6 6
7 #include "CCLayerImpl.h" 7 #include "CCLayerImpl.h"
8 8
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "CCDebugBorderDrawQuad.h" 10 #include "CCDebugBorderDrawQuad.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 void CCLayerImpl::clearChildList() 102 void CCLayerImpl::clearChildList()
103 { 103 {
104 m_children.clear(); 104 m_children.clear();
105 } 105 }
106 106
107 void CCLayerImpl::createRenderSurface() 107 void CCLayerImpl::createRenderSurface()
108 { 108 {
109 ASSERT(!m_renderSurface); 109 ASSERT(!m_renderSurface);
110 m_renderSurface = adoptPtr(new CCRenderSurface(this)); 110 m_renderSurface = make_scoped_ptr(new CCRenderSurface(this));
111 setRenderTarget(this); 111 setRenderTarget(this);
112 } 112 }
113 113
114 bool CCLayerImpl::descendantDrawsContent() 114 bool CCLayerImpl::descendantDrawsContent()
115 { 115 {
116 for (size_t i = 0; i < m_children.size(); ++i) { 116 for (size_t i = 0; i < m_children.size(); ++i) {
117 if (m_children[i]->drawsContent() || m_children[i]->descendantDrawsConte nt()) 117 if (m_children[i]->drawsContent() || m_children[i]->descendantDrawsConte nt())
118 return true; 118 return true;
119 } 119 }
120 return false; 120 return false;
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 671
672 void CCLayerImpl::setVerticalScrollbarLayer(CCScrollbarLayerImpl* scrollbarLayer ) 672 void CCLayerImpl::setVerticalScrollbarLayer(CCScrollbarLayerImpl* scrollbarLayer )
673 { 673 {
674 if (!m_scrollbarAnimationController) 674 if (!m_scrollbarAnimationController)
675 m_scrollbarAnimationController = CCScrollbarAnimationController::create( this); 675 m_scrollbarAnimationController = CCScrollbarAnimationController::create( this);
676 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); 676 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer);
677 m_scrollbarAnimationController->updateScrollOffset(this); 677 m_scrollbarAnimationController->updateScrollOffset(this);
678 } 678 }
679 679
680 } 680 }
OLDNEW
« no previous file with comments | « cc/layer_impl.h ('k') | cc/scrollbar_animation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698