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

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

Issue 2840093002: Allow RecordingImageBufferSurface to prevent fallback. (Closed)
Patch Set: imagebuffer-fallback: missedone 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 5f88c307228cfbe02d24f1a0eec91d6cec53c838..e089a74152c3564b482b07e941dfc478e2f3861d 100644
--- a/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/CSSPaintDefinition.cpp
@@ -91,7 +91,8 @@ PassRefPtr<Image> CSSPaintDefinition::Paint(
PaintRenderingContext2D* rendering_context = PaintRenderingContext2D::Create(
ImageBuffer::Create(WTF::WrapUnique(new RecordingImageBufferSurface(
- size, has_alpha_ ? kNonOpaque : kOpaque))),
+ size, RecordingImageBufferSurface::kDisallowFallback,
+ 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