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

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

Issue 2225563002: Reland "Raster display item lists via a visual rect RTree." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync to head. Created 4 years, 4 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 | « no previous file | cc/blink/web_display_item_list_impl.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_content_layer_impl.h" 5 #include "cc/blink/web_content_layer_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return client_->paintableRegion(); 68 return client_->paintableRegion();
69 } 69 }
70 70
71 scoped_refptr<cc::DisplayItemList> 71 scoped_refptr<cc::DisplayItemList>
72 WebContentLayerImpl::PaintContentsToDisplayList( 72 WebContentLayerImpl::PaintContentsToDisplayList(
73 cc::ContentLayerClient::PaintingControlSetting painting_control) { 73 cc::ContentLayerClient::PaintingControlSetting painting_control) {
74 cc::DisplayItemListSettings settings; 74 cc::DisplayItemListSettings settings;
75 settings.use_cached_picture = UseCachedPictureRaster(); 75 settings.use_cached_picture = UseCachedPictureRaster();
76 76
77 scoped_refptr<cc::DisplayItemList> display_list = 77 scoped_refptr<cc::DisplayItemList> display_list =
78 cc::DisplayItemList::Create(PaintableRegion(), settings); 78 cc::DisplayItemList::Create(settings);
79 if (client_) { 79 if (client_) {
80 WebDisplayItemListImpl list(display_list.get()); 80 WebDisplayItemListImpl list(display_list.get());
81 client_->paintContents(&list, PaintingControlToWeb(painting_control)); 81 client_->paintContents(&list, PaintingControlToWeb(painting_control));
82 } 82 }
83 display_list->Finalize(); 83 display_list->Finalize();
84 return display_list; 84 return display_list;
85 } 85 }
86 86
87 bool WebContentLayerImpl::FillsBoundsCompletely() const { 87 bool WebContentLayerImpl::FillsBoundsCompletely() const {
88 return false; 88 return false;
89 } 89 }
90 90
91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const {
92 return client_->approximateUnsharedMemoryUsage(); 92 return client_->approximateUnsharedMemoryUsage();
93 } 93 }
94 94
95 } // namespace cc_blink 95 } // namespace cc_blink
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_display_item_list_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698