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 "cc/layers/scrollbar_layer.h" | 5 #include "cc/layers/scrollbar_layer.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "cc/layers/scrollbar_layer_impl.h" | 10 #include "cc/layers/scrollbar_layer_impl.h" |
11 #include "cc/resources/caching_bitmap_content_layer_updater.h" | 11 #include "cc/resources/caching_bitmap_content_layer_updater.h" |
12 #include "cc/resources/layer_painter.h" | 12 #include "cc/resources/layer_painter.h" |
13 #include "cc/resources/prioritized_resource.h" | 13 #include "cc/resources/prioritized_resource.h" |
14 #include "cc/resources/resource_update_queue.h" | 14 #include "cc/resources/resource_update_queue.h" |
15 #include "cc/trees/layer_tree_host.h" | 15 #include "cc/trees/layer_tree_host.h" |
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" | 16 #include "third_party/WebKit/public/platform/WebRect.h" |
17 #include "ui/gfx/rect_conversions.h" | 17 #include "ui/gfx/rect_conversions.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
21 scoped_ptr<LayerImpl> ScrollbarLayer::CreateLayerImpl( | 21 scoped_ptr<LayerImpl> ScrollbarLayer::CreateLayerImpl( |
22 LayerTreeImpl* tree_impl) { | 22 LayerTreeImpl* tree_impl) { |
23 return ScrollbarLayerImpl::Create( | 23 return ScrollbarLayerImpl::Create( |
24 tree_impl, | 24 tree_impl, |
25 id(), | 25 id(), |
26 ScrollbarGeometryFixedThumb::Create(make_scoped_ptr(geometry_->clone()))) | 26 ScrollbarGeometryFixedThumb::Create(make_scoped_ptr(geometry_->clone()))) |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 thumb_.get(), | 438 thumb_.get(), |
439 origin_thumb_rect, | 439 origin_thumb_rect, |
440 queue, | 440 queue, |
441 stats); | 441 stats); |
442 } | 442 } |
443 | 443 |
444 dirty_rect_ = gfx::RectF(); | 444 dirty_rect_ = gfx::RectF(); |
445 } | 445 } |
446 | 446 |
447 } // namespace cc | 447 } // namespace cc |
OLD | NEW |