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

Side by Side Diff: cc/blink/web_display_item_list_impl.cc

Issue 2876033005: Track slow paths in DisplayItemList (Closed)
Patch Set: danakj review Created 3 years, 6 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
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/layers/picture_layer.cc » ('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 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
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
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698