Disable accelerated 2d canvas on the mac. The current implementation is based on SKIA and isn't ... (issue7093002)

23 views
Skip to first unread message

vang...@google.com

unread,
May 30, 2011, 11:11:54 PM5/30/11
to vang...@chromium.org, a...@chromium.org, chromium...@chromium.org, a...@chromium.org, bret...@chromium.org
Please review when you get a chance.

http://codereview.chromium.org/7093002/

a...@chromium.org

unread,
May 31, 2011, 8:07:15 AM5/31/11
to vang...@chromium.org, vang...@google.com, chromium...@chromium.org, bret...@chromium.org
LGTM with fix.


http://codereview.chromium.org/7093002/diff/1/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
File chrome/browser/tab_contents/render_view_host_delegate_helper.cc
(right):

http://codereview.chromium.org/7093002/diff/1/chrome/browser/tab_contents/render_view_host_delegate_helper.cc#newcode322
chrome/browser/tab_contents/render_view_host_delegate_helper.cc:322:
web_prefs.accelerated_2d_canvas_enabled = false;
Need a comment with a bug URL here.

http://codereview.chromium.org/7093002/

ju...@chromium.org

unread,
May 31, 2011, 10:31:32 AM5/31/11
to vang...@chromium.org, a...@chromium.org, vang...@google.com, chromium...@chromium.org, a...@chromium.org, bret...@chromium.org
I disagree with this fix. The proper mechanism for excluding features on a
per
platform basis is in feauture_override.gypi. We already have a compile
flag for
this feature in place: ENABLE(ACCELERATED_2D_CANVAS)
The problem is that the current logic in feauture_override.gypi turns on the
accelerated 2d canvas whenever accelerated compositing is on, which is not
necessary. On the mac, we should be building with accelerated compositing
only.

The change that is required on the WebKit side is to make sure that
accelerated
compositing can be used without accelerated 2d canvas, which is currently
not
the case because of unresolved symbols from TilingData.cpp. To fix that,
it is
just a matter of changing the #if at the top of that file.
Once that change is rolled into chromium, the change to
feature_override.gypi
will not break the mac build.

a...@chromium.org

unread,
May 31, 2011, 10:49:38 AM5/31/11
to vang...@chromium.org, vang...@google.com, ju...@chromium.org, chromium...@chromium.org, bret...@chromium.org
junov clearly is better-informed than I am. Please follow his advice.

http://codereview.chromium.org/7093002/

vang...@google.com

unread,
May 31, 2011, 12:27:27 PM5/31/11
to vang...@chromium.org, a...@chromium.org, ju...@chromium.org, chromium...@chromium.org, bret...@chromium.org
On 2011/05/31 14:49:38, Avi wrote:
> junov clearly is better-informed than I am. Please follow his advice.

Thanks, Justin. I like your solution better too! I'm closing this one
since
you're already working on the GYP-based solution.


http://codereview.chromium.org/7093002/

Reply all
Reply to author
Forward
0 new messages