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

Side by Side Diff: cc/CCScrollbarLayerImpl.cpp

Issue 11099040: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix cc unit tests 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/CCScrollbarLayerImpl.h ('k') | cc/CCSolidColorLayerImpl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "CCScrollbarLayerImpl.h" 9 #include "CCScrollbarLayerImpl.h"
10 10
11 #include "CCQuadSink.h" 11 #include "CCQuadSink.h"
12 #include "CCScrollbarAnimationController.h" 12 #include "CCScrollbarAnimationController.h"
13 #include "CCTextureDrawQuad.h" 13 #include "CCTextureDrawQuad.h"
14 14
15 using WebKit::WebRect; 15 using WebKit::WebRect;
16 using WebKit::WebScrollbar; 16 using WebKit::WebScrollbar;
17 17
18 namespace cc { 18 namespace cc {
19 19
20 PassOwnPtr<CCScrollbarLayerImpl> CCScrollbarLayerImpl::create(int id) 20 scoped_ptr<CCScrollbarLayerImpl> CCScrollbarLayerImpl::create(int id)
21 { 21 {
22 return adoptPtr(new CCScrollbarLayerImpl(id)); 22 return make_scoped_ptr(new CCScrollbarLayerImpl(id));
23 } 23 }
24 24
25 CCScrollbarLayerImpl::CCScrollbarLayerImpl(int id) 25 CCScrollbarLayerImpl::CCScrollbarLayerImpl(int id)
26 : CCLayerImpl(id) 26 : CCLayerImpl(id)
27 , m_scrollbar(this) 27 , m_scrollbar(this)
28 , m_backTrackResourceId(0) 28 , m_backTrackResourceId(0)
29 , m_foreTrackResourceId(0) 29 , m_foreTrackResourceId(0)
30 , m_thumbResourceId(0) 30 , m_thumbResourceId(0)
31 , m_scrollbarOverlayStyle(WebScrollbar::ScrollbarOverlayStyleDefault) 31 , m_scrollbarOverlayStyle(WebScrollbar::ScrollbarOverlayStyleDefault)
32 , m_orientation(WebScrollbar::Horizontal) 32 , m_orientation(WebScrollbar::Horizontal)
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 } 197 }
198 198
199 const char* CCScrollbarLayerImpl::layerTypeAsString() const 199 const char* CCScrollbarLayerImpl::layerTypeAsString() const
200 { 200 {
201 return "ScrollbarLayer"; 201 return "ScrollbarLayer";
202 } 202 }
203 203
204 } 204 }
205 205
206 #endif // USE(ACCELERATED_COMPOSITING) 206 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/CCScrollbarLayerImpl.h ('k') | cc/CCSolidColorLayerImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698