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

Unified Diff: cc/blink/web_display_item_list_impl.cc

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_display_item_list_impl.cc
diff --git a/cc/blink/web_display_item_list_impl.cc b/cc/blink/web_display_item_list_impl.cc
index 889566b24ab59cf38ab05d7af3d828110ed0481a..c1c47de0c9b9494b582b36088600e5c2ac4de4bf 100644
--- a/cc/blink/web_display_item_list_impl.cc
+++ b/cc/blink/web_display_item_list_impl.cc
@@ -23,6 +23,7 @@
#include "third_party/skia/include/core/SkMatrix44.h"
#include "ui/gfx/geometry/rect_conversions.h"
#include "ui/gfx/geometry/safe_integer_conversions.h"
+#include "ui/gfx/skia_util.h"
#include "ui/gfx/transform.h"
namespace cc_blink {
@@ -41,9 +42,10 @@ WebDisplayItemListImpl::WebDisplayItemListImpl(
void WebDisplayItemListImpl::AppendDrawingItem(
const blink::WebRect& visual_rect,
- sk_sp<const cc::PaintRecord> record) {
+ sk_sp<const cc::PaintRecord> record,
+ const blink::WebRect& record_bounds) {
display_item_list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(
- visual_rect, std::move(record));
+ visual_rect, std::move(record), gfx::RectToSkRect(record_bounds));
}
void WebDisplayItemListImpl::AppendClipItem(
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/layers/picture_image_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698