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

Side by Side Diff: cc/ScrollbarLayerChromium.h

Issue 11076013: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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/LayerChromiumTest.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('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 5
6 #ifndef ScrollbarLayerChromium_h 6 #ifndef ScrollbarLayerChromium_h
7 #define ScrollbarLayerChromium_h 7 #define ScrollbarLayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 14 matching lines...) Expand all
25 class CCTextureUpdateQueue; 25 class CCTextureUpdateQueue;
26 26
27 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
28 typedef CachingBitmapCanvasLayerTextureUpdater ScrollLayerTextureUpdater; 28 typedef CachingBitmapCanvasLayerTextureUpdater ScrollLayerTextureUpdater;
29 #else 29 #else
30 typedef BitmapCanvasLayerTextureUpdater ScrollLayerTextureUpdater; 30 typedef BitmapCanvasLayerTextureUpdater ScrollLayerTextureUpdater;
31 #endif 31 #endif
32 32
33 class ScrollbarLayerChromium : public LayerChromium { 33 class ScrollbarLayerChromium : public LayerChromium {
34 public: 34 public:
35 virtual PassOwnPtr<CCLayerImpl> createCCLayerImpl() OVERRIDE; 35 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE;
36 36
37 static scoped_refptr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebSc rollbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarTheme Geometry>, int scrollLayerId); 37 static scoped_refptr<ScrollbarLayerChromium> create(PassOwnPtr<WebKit::WebSc rollbar>, WebKit::WebScrollbarThemePainter, PassOwnPtr<WebKit::WebScrollbarTheme Geometry>, int scrollLayerId);
38 38
39 // LayerChromium interface 39 // LayerChromium interface
40 virtual bool needsContentsScale() const OVERRIDE; 40 virtual bool needsContentsScale() const OVERRIDE;
41 virtual IntSize contentBounds() const OVERRIDE; 41 virtual IntSize contentBounds() const OVERRIDE;
42 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE; 42 virtual void setTexturePriorities(const CCPriorityCalculator&) OVERRIDE;
43 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE; 43 virtual void update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRend eringStats&) OVERRIDE;
44 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE; 44 virtual void setLayerTreeHost(CCLayerTreeHost*) OVERRIDE;
45 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; 45 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE;
(...skipping 25 matching lines...) Expand all
71 // All the parts of the scrollbar except the thumb 71 // All the parts of the scrollbar except the thumb
72 OwnPtr<LayerTextureUpdater::Texture> m_backTrack; 72 OwnPtr<LayerTextureUpdater::Texture> m_backTrack;
73 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack; 73 OwnPtr<LayerTextureUpdater::Texture> m_foreTrack;
74 OwnPtr<LayerTextureUpdater::Texture> m_thumb; 74 OwnPtr<LayerTextureUpdater::Texture> m_thumb;
75 }; 75 };
76 76
77 } 77 }
78 #endif // USE(ACCELERATED_COMPOSITING) 78 #endif // USE(ACCELERATED_COMPOSITING)
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « cc/LayerChromiumTest.cpp ('k') | cc/ScrollbarLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698