OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/blink/web_display_item_list_impl.h" | 5 #include "cc/blink/web_display_item_list_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 matrix.setTranslate(-scroll_offset.width, -scroll_offset.height, 0); | 141 matrix.setTranslate(-scroll_offset.width, -scroll_offset.height, 0); |
142 // TODO(wkorman): http://crbug.com/633636 Should we translate the visual rect | 142 // TODO(wkorman): http://crbug.com/633636 Should we translate the visual rect |
143 // as well? Create a test case and investigate. | 143 // as well? Create a test case and investigate. |
144 AppendTransformItem(matrix); | 144 AppendTransformItem(matrix); |
145 } | 145 } |
146 | 146 |
147 void WebDisplayItemListImpl::AppendEndScrollItem() { | 147 void WebDisplayItemListImpl::AppendEndScrollItem() { |
148 AppendEndTransformItem(); | 148 AppendEndTransformItem(); |
149 } | 149 } |
150 | 150 |
151 void WebDisplayItemListImpl::SetIsSuitableForGpuRasterization(bool isSuitable) { | 151 void WebDisplayItemListImpl::SetNumSlowPaths(int num_slow_paths) { |
152 display_item_list_->SetIsSuitableForGpuRasterization(isSuitable); | 152 display_item_list_->SetNumSlowPaths(num_slow_paths); |
153 } | 153 } |
154 | 154 |
155 WebDisplayItemListImpl::~WebDisplayItemListImpl() { | 155 WebDisplayItemListImpl::~WebDisplayItemListImpl() { |
156 } | 156 } |
157 | 157 |
158 } // namespace cc_blink | 158 } // namespace cc_blink |
OLD | NEW |