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

Unified Diff: ui/compositor/paint_recorder.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 | « ui/compositor/paint_recorder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/paint_recorder.cc
diff --git a/ui/compositor/paint_recorder.cc b/ui/compositor/paint_recorder.cc
index f93d700b37e487a8f3491f3dcd570e3c09b97648..97d2b5c42ad183c26d33132d46d69fb63a8fe1d2 100644
--- a/ui/compositor/paint_recorder.cc
+++ b/ui/compositor/paint_recorder.cc
@@ -25,7 +25,7 @@ PaintRecorder::PaintRecorder(const PaintContext& context,
gfx::RectToSkRect(gfx::Rect(recording_size))),
context.device_scale_factor_),
cache_(cache),
- bounds_in_layer_(context.ToLayerSpaceBounds(recording_size)) {
+ recording_size_(recording_size) {
#if DCHECK_IS_ON()
DCHECK(!context.inside_paint_recorder_);
context.inside_paint_recorder_ = true;
@@ -41,9 +41,11 @@ PaintRecorder::~PaintRecorder() {
#if DCHECK_IS_ON()
context_.inside_paint_recorder_ = false;
#endif
+ gfx::Rect bounds_in_layer = context_.ToLayerSpaceBounds(recording_size_);
const auto& item =
context_.list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(
- bounds_in_layer_, context_.recorder_->finishRecordingAsPicture());
+ bounds_in_layer, context_.recorder_->finishRecordingAsPicture(),
+ gfx::RectToSkRect(gfx::Rect(recording_size_)));
if (cache_)
cache_->SetCache(item);
}
« no previous file with comments | « ui/compositor/paint_recorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698