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

Issue 15331003: fix slowness of getImageData() for CanvasRenderingContext2D in linux due to un-optimized format for… (Closed)

Created:
7 years, 7 months ago by Jun Jiang
Modified:
7 years, 7 months ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

fix slowness of getImageData() for CanvasRenderingContext2D in linux due to un-optimized format for glReadPixels. BUG=242093

Patch Set 1 #

Patch Set 2 : patch preferredReadPixelsConfig() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -12 lines) Patch
M src/gpu/GrContext.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/gpu/GrGpu.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGpuGL.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/gl/GrGpuGL.cpp View 1 1 chunk +8 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jun Jiang
This issue is found when investigating http://code.google.com/p/chromium/issues/detail?id=235783. This fix can get 7x + performance increase ...
7 years, 7 months ago (2013-05-19 15:21:48 UTC) #1
bsalomon
On 2013/05/19 15:21:48, Jun Jiang wrote: > This issue is found when investigating > http://code.google.com/p/chromium/issues/detail?id=235783. ...
7 years, 7 months ago (2013-05-20 13:04:00 UTC) #2
Jun Jiang
On 2013/05/20 13:04:00, bsalomon wrote: > On 2013/05/19 15:21:48, Jun Jiang wrote: > > This ...
7 years, 7 months ago (2013-05-21 15:26:26 UTC) #3
bsalomon
On 2013/05/21 15:26:26, Jun Jiang wrote: > On 2013/05/20 13:04:00, bsalomon wrote: > > On ...
7 years, 7 months ago (2013-05-22 15:00:07 UTC) #4
Jun Jiang
On 2013/05/22 15:00:07, bsalomon wrote: > On 2013/05/21 15:26:26, Jun Jiang wrote: > > On ...
7 years, 7 months ago (2013-05-22 16:58:13 UTC) #5
Jun Jiang
7 years, 7 months ago (2013-05-24 20:03:23 UTC) #6
On 2013/05/22 16:58:13, Jun Jiang wrote:
> On 2013/05/22 15:00:07, bsalomon wrote:
> > On 2013/05/21 15:26:26, Jun Jiang wrote:
> > > On 2013/05/20 13:04:00, bsalomon wrote:
> > > > On 2013/05/19 15:21:48, Jun Jiang wrote:
> > > > > This issue is found when investigating
> > > > > http://code.google.com/p/chromium/issues/detail?id=235783. This fix
can
> > get
> > > 7x
> > > > +
> > > > > performance increase on ubuntu 12.04 with Mesa 8.0.4.
> > > > 
> > > > Can we fix this by returning the correct value from
> > > preferredReadPixelsConfig()
> > > > rather than not calling it. Otherwise this will slow down other
platforms
> > > (ANGLE
> > > > in particular).
> > > Hi, bsalonmon. Thanks for your comments.
> > > Yes, there may be a case that the backend for Canvas2D texture is of
format
> > RGBA
> > > format although currently what we see is of BGRA format for all platforms.
> It
> > > may ruin the performance for Angle. Refined the patch accordingly and
PTAL.
> > > Thanks.
> > 
> > I've made some changes to this patch (mostly line-wraps, param names, and
> > comments) and uploaded it here: https://codereview.chromium.org/15746007
> (since
> > codereview doesn't allow a second author to upload to an issue).
> 
> Hi, bsalonmon. Thanks for your help on this.

Thanks for bsalonmon's help and it has been landed at
https://codereview.chromium.org/15746007. Close this issue now.

Powered by Google App Engine
This is Rietveld 408576698