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

Unified Diff: ui/compositor/compositing_recorder.cc

Issue 1521373005: Revert of cc: Shrink size of display item (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/clip_recorder.cc ('k') | ui/compositor/paint_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositing_recorder.cc
diff --git a/ui/compositor/compositing_recorder.cc b/ui/compositor/compositing_recorder.cc
index e103890968d072b979768df03863ac665d902714..f3d49cffa08b9c398176e34476aa075c5c9cfa1a 100644
--- a/ui/compositor/compositing_recorder.cc
+++ b/ui/compositor/compositing_recorder.cc
@@ -20,9 +20,10 @@
if (!saved_)
return;
- context_.list_->CreateAndAppendItem<cc::CompositingDisplayItem>(
- bounds_in_layer_, alpha, SkXfermode::kSrcOver_Mode,
- nullptr /* no bounds */, skia::RefPtr<SkColorFilter>());
+ auto* item = context_.list_->CreateAndAppendItem<cc::CompositingDisplayItem>(
+ bounds_in_layer_);
+ item->SetNew(alpha, SkXfermode::kSrcOver_Mode, nullptr /* no bounds */,
+ skia::RefPtr<SkColorFilter>());
}
CompositingRecorder::~CompositingRecorder() {
« no previous file with comments | « ui/compositor/clip_recorder.cc ('k') | ui/compositor/paint_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698