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/test/fake_scrollbar_layer.h" | 5 #include "cc/test/fake_scrollbar_layer.h" |
6 | 6 |
7 #include "cc/resource_update_queue.h" | 7 #include "cc/resources/resource_update_queue.h" |
8 #include "cc/test/fake_scrollbar_theme_painter.h" | 8 #include "cc/test/fake_scrollbar_theme_painter.h" |
9 #include "cc/test/fake_web_scrollbar.h" | 9 #include "cc/test/fake_web_scrollbar.h" |
10 #include "cc/test/fake_web_scrollbar_theme_geometry.h" | 10 #include "cc/test/fake_web_scrollbar_theme_geometry.h" |
11 | 11 |
12 namespace cc { | 12 namespace cc { |
13 | 13 |
14 FakeScrollbarLayer::FakeScrollbarLayer(bool paint_during_update, | 14 FakeScrollbarLayer::FakeScrollbarLayer(bool paint_during_update, |
15 bool has_thumb, | 15 bool has_thumb, |
16 int scrolling_layer_id) | 16 int scrolling_layer_id) |
17 : ScrollbarLayer(FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(), | 17 : ScrollbarLayer(FakeWebScrollbar::Create().PassAs<WebKit::WebScrollbar>(), |
(...skipping 17 matching lines...) Expand all Loading... |
35 RenderingStats* stats) { | 35 RenderingStats* stats) { |
36 size_t full = queue->fullUploadSize(); | 36 size_t full = queue->fullUploadSize(); |
37 size_t partial = queue->partialUploadSize(); | 37 size_t partial = queue->partialUploadSize(); |
38 ScrollbarLayer::Update(queue, occlusion, stats); | 38 ScrollbarLayer::Update(queue, occlusion, stats); |
39 update_count_++; | 39 update_count_++; |
40 last_update_full_upload_size_ = queue->fullUploadSize() - full; | 40 last_update_full_upload_size_ = queue->fullUploadSize() - full; |
41 last_update_partial_upload_size_ = queue->partialUploadSize() - partial; | 41 last_update_partial_upload_size_ = queue->partialUploadSize() - partial; |
42 } | 42 } |
43 | 43 |
44 } // namespace cc | 44 } // namespace cc |
OLD | NEW |