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

Unified Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp

Issue 2833593002: Remove unneeded abstractions and simplify RecordingImageBufferSurface (Closed)
Patch Set: imagebuffersurface-cleanups: morefixcompile Created 3 years, 8 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
Index: third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
index 9a11dc0c4c65cd7fa095983d58f7f382be0630a2..24ae327db76be58fba030795714974c22836eec7 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -90,9 +90,8 @@ PassRefPtr<Image> CSSPaintDefinition::Paint(
DCHECK(layout_object.GetNode());
PaintRenderingContext2D* rendering_context = PaintRenderingContext2D::Create(
- ImageBuffer::Create(WTF::WrapUnique(
- new RecordingImageBufferSurface(size, nullptr /* fallbackFactory */,
- has_alpha_ ? kNonOpaque : kOpaque))),
+ ImageBuffer::Create(WTF::WrapUnique(new RecordingImageBufferSurface(
+ size, has_alpha_ ? kNonOpaque : kOpaque))),
has_alpha_, zoom);
PaintSize* paint_size = PaintSize::Create(specified_size);
StylePropertyMapReadonly* style_map =

Powered by Google App Engine
This is Rietveld 408576698