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

Issue 1060583003: WebGL backbuffer creation on Mali-400 GPU

Created:
5 years, 8 months ago by rahulg
Modified:
5 years, 6 months ago
CC:
blink-reviews, krit, dshwang, Dominik Röttsches, blink-reviews-html_chromium.org, pdr+graphicswatchlist_chromium.org, Justin Novosad, jbroman, danakj, dglazkov+blink, Rik, f(malita), Stephen Chennney, aandrey+blink_chromium.org, rwlbuis, bajones
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

WebGL back-buffer creation on Mali-400 GPU DrawingBuffer tries to allocate back-buffer as GL_RGB texture in case of requested alpha attribute is false and fails because GL_RGB not supported on specific GPU's (e.g Mali- 2/3/400 family). This CL manages workaround for back-buffer and choose texture format correctly. BUG=449150

Patch Set 1 #

Patch Set 2 : Added comments #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -4 lines) Patch
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 2 chunks +7 lines, -1 line 3 comments Download
M Source/platform/graphics/gpu/DrawingBuffer.h View 1 2 chunks +3 lines, -0 lines 1 comment Download
M Source/platform/graphics/gpu/DrawingBuffer.cpp View 1 4 chunks +36 lines, -3 lines 4 comments Download

Messages

Total messages: 13 (1 generated)
rahulg
PTAL
5 years, 8 months ago (2015-04-06 14:49:02 UTC) #2
Ken Russell (switch to Gerrit)
I'm sorry, but this does not lgtm. There are bugs in the code and I'm ...
5 years, 8 months ago (2015-04-06 21:43:19 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1005 Source/platform/graphics/gpu/DrawingBuffer.cpp:1005: // One time validation is required for GL_RGB texture ...
5 years, 8 months ago (2015-04-06 21:44:55 UTC) #4
rahulg
On 2015/04/06 21:44:55, Ken Russell wrote: > https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp > File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): > > https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1005 ...
5 years, 8 months ago (2015-04-07 12:07:29 UTC) #5
halliwell
On 2015/04/07 12:07:29, rahulg wrote: > On 2015/04/06 21:44:55, Ken Russell wrote: > > > ...
5 years, 7 months ago (2015-05-07 23:59:13 UTC) #6
rahulg
On 2015/05/07 23:59:13, halliwell wrote: > On 2015/04/07 12:07:29, rahulg wrote: > > On 2015/04/06 ...
5 years, 7 months ago (2015-05-08 01:54:05 UTC) #7
halliwell
On 2015/04/06 21:44:55, Ken Russell wrote: > https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp > File Source/platform/graphics/gpu/DrawingBuffer.cpp (right): > > https://codereview.chromium.org/1060583003/diff/20001/Source/platform/graphics/gpu/DrawingBuffer.cpp#newcode1005 ...
5 years, 7 months ago (2015-05-12 23:52:01 UTC) #8
Zhenyao Mo
On 2015/05/12 23:52:01, halliwell wrote: > On 2015/04/06 21:44:55, Ken Russell wrote: > > > ...
5 years, 7 months ago (2015-05-13 00:00:20 UTC) #9
rahulg
On 2015/05/13 00:00:20, Zhenyao Mo wrote: > On 2015/05/12 23:52:01, halliwell wrote: > > On ...
5 years, 7 months ago (2015-05-13 01:49:26 UTC) #10
rahulg
> > It should be defined as one of the WebPreferences and propagate through > ...
5 years, 6 months ago (2015-05-28 07:27:58 UTC) #11
Zhenyao Mo
On 2015/05/28 07:27:58, rahulg wrote: > > > It should be defined as one of ...
5 years, 6 months ago (2015-06-05 16:29:12 UTC) #12
rahulg
5 years, 6 months ago (2015-06-08 01:46:54 UTC) #13
On 2015/06/05 16:29:12, Zhenyao Mo wrote:
> On 2015/05/28 07:27:58, rahulg wrote:
> > > > It should be defined as one of the WebPreferences and propagate through
> > > > GpuDataManagerImplPrivate::UpdateRendererWebPrefs().
> > > > 
> > > Thank you for suggestion.
> > > 
> > 
> > @zmo
> > Need your suggestion for (Accessing WebPreference in
> > render_blink_platform_impl.cc)
> > 
> > As per your suggestion
> > I have defined gl_rgb_support FLAG as WebPreferences and updated on this
> method
> > [GpuDataManagerImplPrivate::UpdateRendererWebPrefs()]
> > please check => https://codereview.chromium.org/1154463005/
> > 
> > could you also suggest how to access "gl_rgb_support WebPreference" in
> > render_blink_platform_impl.cc
> > I need to expose WebPreference (gl_rgb_support) to the Blink side
> > Please check https://codereview.chromium.org/1153713003/
> 
> Sorry this thread dropped out of my radar.
> 
> You need to wire the WebPreferences all the way to the blink side, then you
can
> access it there.
> 
> Exposing blacklist is definitely not the way to do this.
> 
> Please take a look at WebSettings.  You can follow how the
> accelerated_2d_canvas_enabled is wired:
> 
>
https://code.google.com/p/chromium/codesearch#chromium/src/content/renderer/r...

Thank you

Powered by Google App Engine
This is Rietveld 408576698