| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "ScrollbarLayerChromium.h" | 9 #include "ScrollbarLayerChromium.h" |
| 10 | 10 |
| 11 #include "BitmapCanvasLayerTextureUpdater.h" | 11 #include "BitmapCanvasLayerTextureUpdater.h" |
| 12 #include "CCLayerTreeHost.h" | 12 #include "CCLayerTreeHost.h" |
| 13 #include "CCScrollbarLayerImpl.h" | 13 #include "CCScrollbarLayerImpl.h" |
| 14 #include "CCTextureUpdateQueue.h" | 14 #include "CCTextureUpdateQueue.h" |
| 15 #include "LayerPainterChromium.h" | 15 #include "LayerPainterChromium.h" |
| 16 #include <public/WebRect.h> | 16 #include <public/WebRect.h> |
| 17 | 17 |
| 18 using WebKit::WebRect; | 18 using WebKit::WebRect; |
| 19 | 19 |
| 20 namespace WebCore { | 20 namespace cc { |
| 21 | 21 |
| 22 PassOwnPtr<CCLayerImpl> ScrollbarLayerChromium::createCCLayerImpl() | 22 PassOwnPtr<CCLayerImpl> ScrollbarLayerChromium::createCCLayerImpl() |
| 23 { | 23 { |
| 24 return CCScrollbarLayerImpl::create(id()); | 24 return CCScrollbarLayerImpl::create(id()); |
| 25 } | 25 } |
| 26 | 26 |
| 27 PassRefPtr<ScrollbarLayerChromium> ScrollbarLayerChromium::create(PassOwnPtr<Web
Kit::WebScrollbar> scrollbar, WebKit::WebScrollbarThemePainter painter, PassOwnP
tr<WebKit::WebScrollbarThemeGeometry> geometry, int scrollLayerId) | 27 PassRefPtr<ScrollbarLayerChromium> ScrollbarLayerChromium::create(PassOwnPtr<Web
Kit::WebScrollbar> scrollbar, WebKit::WebScrollbarThemePainter painter, PassOwnP
tr<WebKit::WebScrollbarThemeGeometry> geometry, int scrollLayerId) |
| 28 { | 28 { |
| 29 return adoptRef(new ScrollbarLayerChromium(scrollbar, painter, geometry, scr
ollLayerId)); | 29 return adoptRef(new ScrollbarLayerChromium(scrollbar, painter, geometry, scr
ollLayerId)); |
| 30 } | 30 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 // Consider the thumb to be at the origin when painting. | 253 // Consider the thumb to be at the origin when painting. |
| 254 WebKit::WebRect thumbRect = m_geometry->thumbRect(m_scrollbar.get()); | 254 WebKit::WebRect thumbRect = m_geometry->thumbRect(m_scrollbar.get()); |
| 255 IntRect originThumbRect = IntRect(0, 0, thumbRect.width, thumbRect.height); | 255 IntRect originThumbRect = IntRect(0, 0, thumbRect.width, thumbRect.height); |
| 256 if (!originThumbRect.isEmpty()) | 256 if (!originThumbRect.isEmpty()) |
| 257 updatePart(m_thumbUpdater.get(), m_thumb.get(), originThumbRect, queue,
stats); | 257 updatePart(m_thumbUpdater.get(), m_thumb.get(), originThumbRect, queue,
stats); |
| 258 } | 258 } |
| 259 | 259 |
| 260 } | 260 } |
| 261 #endif // USE(ACCELERATED_COMPOSITING) | 261 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |