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

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

Issue 1489713004: Remove the clip parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clipremoval
Patch Set: Created 5 years 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
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "cc/base/switches.h" 8 #include "cc/base/switches.h"
9 #include "cc/blink/web_display_item_list_impl.h" 9 #include "cc/blink/web_display_item_list_impl.h"
10 #include "cc/layers/picture_layer.h" 10 #include "cc/layers/picture_layer.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 blink::WebLayer* WebContentLayerImpl::layer() { 57 blink::WebLayer* WebContentLayerImpl::layer() {
58 return layer_.get(); 58 return layer_.get();
59 } 59 }
60 60
61 gfx::Rect WebContentLayerImpl::PaintableRegion() { 61 gfx::Rect WebContentLayerImpl::PaintableRegion() {
62 return client_->paintableRegion(); 62 return client_->paintableRegion();
63 } 63 }
64 64
65 scoped_refptr<cc::DisplayItemList> 65 scoped_refptr<cc::DisplayItemList>
66 WebContentLayerImpl::PaintContentsToDisplayList( 66 WebContentLayerImpl::PaintContentsToDisplayList(
67 const gfx::Rect& clip,
68 cc::ContentLayerClient::PaintingControlSetting painting_control) { 67 cc::ContentLayerClient::PaintingControlSetting painting_control) {
69 cc::DisplayItemListSettings settings; 68 cc::DisplayItemListSettings settings;
70 settings.use_cached_picture = UseCachedPictureRaster(); 69 settings.use_cached_picture = UseCachedPictureRaster();
71 70
72 scoped_refptr<cc::DisplayItemList> display_list = 71 scoped_refptr<cc::DisplayItemList> display_list =
73 cc::DisplayItemList::Create(clip, settings); 72 cc::DisplayItemList::Create(PaintableRegion(), settings);
enne (OOO) 2015/12/01 22:46:25 Should this be set to the rect?
chrishtr 2015/12/01 23:01:20 Not sure what you mean here.
74 if (client_) { 73 if (client_) {
75 WebDisplayItemListImpl list(display_list.get()); 74 WebDisplayItemListImpl list(display_list.get());
76 client_->paintContents(&list, PaintingControlToWeb(painting_control)); 75 client_->paintContents(&list, PaintingControlToWeb(painting_control));
77 } 76 }
78 display_list->Finalize(); 77 display_list->Finalize();
79 return display_list; 78 return display_list;
80 } 79 }
81 80
82 bool WebContentLayerImpl::FillsBoundsCompletely() const { 81 bool WebContentLayerImpl::FillsBoundsCompletely() const {
83 return false; 82 return false;
84 } 83 }
85 84
86 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { 85 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const {
87 return client_->approximateUnsharedMemoryUsage(); 86 return client_->approximateUnsharedMemoryUsage();
88 } 87 }
89 88
90 } // namespace cc_blink 89 } // namespace cc_blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698