| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |