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

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

Issue 1835843002: WIP: Fix foreignObject cullrect Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 "cc/base/switches.h" 10 #include "cc/base/switches.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 return client_->paintableRegion(); 67 return client_->paintableRegion();
68 } 68 }
69 69
70 scoped_refptr<cc::DisplayItemList> 70 scoped_refptr<cc::DisplayItemList>
71 WebContentLayerImpl::PaintContentsToDisplayList( 71 WebContentLayerImpl::PaintContentsToDisplayList(
72 cc::ContentLayerClient::PaintingControlSetting painting_control) { 72 cc::ContentLayerClient::PaintingControlSetting painting_control) {
73 cc::DisplayItemListSettings settings; 73 cc::DisplayItemListSettings settings;
74 settings.use_cached_picture = UseCachedPictureRaster(); 74 settings.use_cached_picture = UseCachedPictureRaster();
75 75
76 scoped_refptr<cc::DisplayItemList> display_list = 76 scoped_refptr<cc::DisplayItemList> display_list =
77 cc::DisplayItemList::Create(PaintableRegion(), settings); 77 cc::DisplayItemList::Create(settings);
78 if (client_) { 78 if (client_) {
79 WebDisplayItemListImpl list(display_list.get()); 79 WebDisplayItemListImpl list(display_list.get());
80 client_->paintContents(&list, PaintingControlToWeb(painting_control)); 80 client_->paintContents(&list, PaintingControlToWeb(painting_control));
81 } 81 }
82 display_list->Finalize(); 82 display_list->Finalize();
83 return display_list; 83 return display_list;
84 } 84 }
85 85
86 bool WebContentLayerImpl::FillsBoundsCompletely() const { 86 bool WebContentLayerImpl::FillsBoundsCompletely() const {
87 return false; 87 return false;
88 } 88 }
89 89
90 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { 90 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const {
91 return client_->approximateUnsharedMemoryUsage(); 91 return client_->approximateUnsharedMemoryUsage();
92 } 92 }
93 93
94 } // namespace cc_blink 94 } // 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