WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
54511
Allow acceleratesDrawing for WebKit2
https://bugs.webkit.org/show_bug.cgi?id=54511
Summary
Allow acceleratesDrawing for WebKit2
Matthew Delaney
Reported
2011-02-15 16:53:54 PST
Allow acceleratesDrawing for WebKit2, plumb through setters/getters.
Attachments
Patch
(14.43 KB, patch)
2011-02-15 17:01 PST
,
Matthew Delaney
no flags
Details
Formatted Diff
Diff
Patch
(13.83 KB, patch)
2011-02-16 18:57 PST
,
Matthew Delaney
simon.fraser
: review+
simon.fraser
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Matthew Delaney
Comment 1
2011-02-15 17:01:05 PST
Created
attachment 82552
[details]
Patch
Simon Fraser (smfr)
Comment 2
2011-02-15 17:08:56 PST
Comment on
attachment 82552
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=82552&action=review
> Source/WebCore/ChangeLog:8 > + No new tests. Can't really test this.
Really, or not at all?
> Source/WebCore/ChangeLog:13 > + ^^ plumb through acceleratesDrawing
Don't use ^^, and use Sentence case.
> Source/WebCore/rendering/RenderLayerCompositor.cpp:1295 > - return canvas->renderingContext() && canvas->renderingContext()->isAccelerated(); > + return canvas->renderingContext() && canvas->renderingContext()->isAccelerated();
Spurious whitespace change here.
> Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp:294 > + if (graphicsLayer) > + m_layerTreeHost->setRootCompositingLayer(graphicsLayer);
You can remove this change now.
> Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp:312 > + if (m_webPage->corePage()->settings()->acceleratedDrawingEnabled()) > + return;
This is a bit hacky; we should clean up this code.
> Source/WebKit2/WebProcess/WebPage/WebPage.cpp:1366 > + settings->setAcceleratedDrawingEnabled(store.getBoolValueForKey(false));
Why the store.getBoolValueForKey(false)?
> Source/WebKit/mac/WebView/WebPreferences.mm:361 > + [NSNumber numberWithBool:YES], WebKitAcceleratedDrawingEnabledPreferenceKey,
I think it should default to off.
Build Bot
Comment 3
2011-02-15 18:27:09 PST
Attachment 82552
[details]
did not build on win: Build output:
http://queues.webkit.org/results/7918100
Matthew Delaney
Comment 4
2011-02-16 18:57:26 PST
Created
attachment 82736
[details]
Patch
Simon Fraser (smfr)
Comment 5
2011-02-16 20:16:10 PST
Comment on
attachment 82736
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=82736&action=review
r=me bug DrawingAreaImpl::exitAcceleratedCompositing() needs fixing.
> Source/WebCore/ChangeLog:12 > + * WebCore.exp.in:Plumb through acceleratesDrawing > + * page/Settings.cpp:Plumb through acceleratesDrawing > + * page/Settings.h: Plumb through acceleratesDrawing
Be consistent about putting a space after the colon.
> Source/WebKit2/WebProcess/WebPage/DrawingAreaImpl.cpp:316 > + m_webPage->corePage()->settings()->acceleratedDrawingEnabled();
This isn't doing anything.
Simon Fraser (smfr)
Comment 6
2011-02-16 20:54:43 PST
http://trac.webkit.org/changeset/78788
WebKit Review Bot
Comment 7
2011-02-17 00:50:18 PST
http://trac.webkit.org/changeset/78788
might have broken GTK Linux 64-bit Debug
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug