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

Issue 399213002: Change GraphicsContext::createCompatibleBuffer to return something non-null (Closed)

Created:
6 years, 5 months ago by Stephen Chennney
Modified:
6 years, 5 months ago
Reviewers:
f(malita), reed1
CC:
blink-reviews, jamesr, krit, jbroman, danakj, Rik, pdr., rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Change GraphicsContext::createCompatibleBuffer to return something non-null The former implementation asked the current SkCanvas, in all cases now a SkPictureRecord, for a new SkSurface. The SkPictureRecord always returned null for the SkSurface. Now we just return a new bitmap surface regardless. There are two pieces of code that depend on this: cross-fade and SVG buffered-rendering (which apparently is going away, see crbug.com/395766). For some reason the cross fade code worked anyway, maybe due to some fallback path, but the SVG caching didn't. Note we don't want any of this rasterization during recording. But for now it stays. R=fmalita@chromium.org,reed@google.com BUG=394765, 394768 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178448

Patch Set 1 #

Patch Set 2 : Rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M Source/core/rendering/svg/SVGRenderingContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/CrossfadeGeneratedImage.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Stephen Chennney
Found this while looking as Slimming Paint changes. I know it's suboptimal, but right now ...
6 years, 5 months ago (2014-07-17 19:12:11 UTC) #1
reed1
Can we rename the function to not say compatible, but raster?
6 years, 5 months ago (2014-07-17 20:36:58 UTC) #2
Stephen Chennney
On 2014/07/17 20:36:58, reed1 wrote: > Can we rename the function to not say compatible, ...
6 years, 5 months ago (2014-07-17 20:44:01 UTC) #3
f(malita)
On 2014/07/17 20:44:01, Stephen Chenney wrote: > On 2014/07/17 20:36:58, reed1 wrote: > > Can ...
6 years, 5 months ago (2014-07-17 20:44:38 UTC) #4
Stephen Chennney
The CQ bit was checked by schenney@chromium.org
6 years, 5 months ago (2014-07-18 14:17:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/schenney@chromium.org/399213002/20001
6 years, 5 months ago (2014-07-18 14:18:36 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 15:24:32 UTC) #7
Message was sent while issue was closed.
Change committed as 178448

Powered by Google App Engine
This is Rietveld 408576698