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

Issue 4320003: Disable accelerated 2D canvas on DX9 by not initializing GraphicsContext3D if it can be lost. (Closed)

Created:
10 years, 1 month ago by scheib
Modified:
9 years, 7 months ago
Reviewers:
jamesr, Svyatpro
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Disable accelerated 2D canvas on DX9 by not initializing GraphicsContext3D if it can be lost. BUG=52689 TEST=http://www.corp.google.com/~scheib/no_crawl/canvas2dtests/minupload1.html. Jitters/popping in texture are a side-effect of NON GPU accelerated rendering. Smooth rotation will occur only with GPU acceleration. On Windows XP even with --enable-accelerated-2d-canvas, only software rendering should appear. On Vista and later the flag should result in smooth rotation.

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc View 1 chunk +6 lines, -0 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
scheib
James, this will enable the feature of canvas detecting XP / DX9. The test is ...
10 years, 1 month ago (2010-11-10 21:19:27 UTC) #1
jamesr
On 2010/11/10 21:19:27, scheib wrote: > James, this will enable the feature of canvas detecting ...
10 years, 1 month ago (2010-11-10 21:21:54 UTC) #2
jamesr
http://codereview.chromium.org/4320003/diff/1/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc File chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (right): http://codereview.chromium.org/4320003/diff/1/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc#newcode90 chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc:90: if (attributes.canRecoverFromContextLoss == false) { nit: if (!attributes.canRecoverFromContextLoss)
10 years, 1 month ago (2010-11-10 21:22:01 UTC) #3
Svyatpro
On 2010/11/10 21:22:01, jamesr wrote: > http://codereview.chromium.org/4320003/diff/1/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc > File chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (right): > > http://codereview.chromium.org/4320003/diff/1/chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc#newcode90 > ...
10 years, 1 month ago (2010-11-15 13:45:42 UTC) #4
scheib
> I used lastest Chromium builds on XP/2003, and HW acceleration worked as well, > ...
10 years, 1 month ago (2010-11-15 18:11:28 UTC) #5
Svyatpro
10 years, 1 month ago (2010-11-15 19:29:06 UTC) #6
On 2010/11/15 18:11:28, scheib wrote:
> > I used lastest Chromium builds on XP/2003, and HW acceleration worked as
well,
> > and now from this (65733) build "IE9 Platform demos" works very slow!
> > Why is this build so poor?
> 
> As the bug http://code.google.com/p/chromium/issues/detail?id=52689 notes,
there
> is no good way to handle a lost context on DX9 - and we must offer correct
> behavior even in the event of lost context.

In this case Chrome is not very interesting, Because being on NT6+ it's simply
to use IE9 or FireFox 4, the main advantage of Chrome was hardware acceleration
of 2D Canvas under XP/2003, I was always using Opera. Only HW accel. of Chrome
made me to move on Chrome. But now, I should to back to Opera again because it
is more pleasant to use.

Powered by Google App Engine
This is Rietveld 408576698