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

Side by Side Diff: cc/ScrollbarLayerChromium.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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/ScrollbarLayerChromium.h ('k') | cc/ShaderChromium.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 "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
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)
OLDNEW
« no previous file with comments | « cc/ScrollbarLayerChromium.h ('k') | cc/ShaderChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698