diff options
Diffstat (limited to 'cc/test/fake_scrollbar_layer.cc')
-rw-r--r-- | cc/test/fake_scrollbar_layer.cc | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/cc/test/fake_scrollbar_layer.cc b/cc/test/fake_scrollbar_layer.cc index 1700dce..9c24a85 100644 --- a/cc/test/fake_scrollbar_layer.cc +++ b/cc/test/fake_scrollbar_layer.cc @@ -11,29 +11,28 @@ namespace cc { -FakeScrollbarLayer::FakeScrollbarLayer( - bool paint_during_update, bool has_thumb, int scrolling_layer_id) - : ScrollbarLayer( - FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(), - FakeScrollbarThemePainter::Create(paint_during_update) - .PassAs<ScrollbarThemePainter>(), - FakeWebScrollbarThemeGeometry::create(has_thumb) - .PassAs<WebKit::WebScrollbarThemeGeometry>(), - scrolling_layer_id), +FakeScrollbarLayer::FakeScrollbarLayer(bool paint_during_update, + bool has_thumb, + int scrolling_layer_id) + : ScrollbarLayer(FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(), + FakeScrollbarThemePainter::Create(paint_during_update). + PassAs<ScrollbarThemePainter>(), + FakeWebScrollbarThemeGeometry::create(has_thumb). + PassAs<WebKit::WebScrollbarThemeGeometry>(), + scrolling_layer_id), update_count_(0), last_update_full_upload_size_(0), last_update_partial_upload_size_(0) { - SetAnchorPoint(gfx::PointF(0, 0)); + SetAnchorPoint(gfx::PointF(0.f, 0.f)); SetBounds(gfx::Size(1, 1)); SetIsDrawable(true); } FakeScrollbarLayer::~FakeScrollbarLayer() {} -void FakeScrollbarLayer::Update( - ResourceUpdateQueue* queue, - const OcclusionTracker* occlusion, - RenderingStats* stats) { +void FakeScrollbarLayer::Update(ResourceUpdateQueue* queue, + const OcclusionTracker* occlusion, + RenderingStats* stats) { size_t full = queue->fullUploadSize(); size_t partial = queue->partialUploadSize(); ScrollbarLayer::Update(queue, occlusion, stats); |