RESOLVED WONTFIX 80343
[Chromium] NOT FOR REVIEW: Support for Browser Plugin
https://bugs.webkit.org/show_bug.cgi?id=80343
Summary [Chromium] NOT FOR REVIEW: Support for Browser Plugin
Fady Samuel
Reported 2012-03-05 16:11:09 PST
[Chromium] Support for Browser Plugin
Attachments
Patch (7.33 KB, patch)
2012-03-05 16:14 PST, Fady Samuel
no flags
Patch (6.78 KB, patch)
2012-03-06 07:52 PST, Fady Samuel
no flags
Patch (2.67 KB, patch)
2012-03-06 10:46 PST, Fady Samuel
no flags
Fady Samuel
Comment 1 2012-03-05 16:14:43 PST
WebKit Review Bot
Comment 2 2012-03-05 16:20:15 PST
Please wait for approval from fishd@chromium.org before submitting because this patch contains changes to the Chromium public API. Please wait for approval from fishd@chromium.org, abarth@webkit.org or jamesr@chromium.org before submitting because this patch contains changes to the Chromium platform API.
James Robinson
Comment 3 2012-03-05 16:34:51 PST
Comment on attachment 130221 [details] Patch What is this?
Adam Barth
Comment 4 2012-03-05 17:48:33 PST
Comment on attachment 130221 [details] Patch The bug title says this isn't meant for review. Note: You can submit patches to the EWS without marking them for review by clicking the "submit to EWS" button that appears next to patches when they haven't been submitted to the EWS.
Darin Fisher (:fishd, Google)
Comment 5 2012-03-06 01:17:54 PST
I was hoping this work wouldn't require WebKit changes. Does this patch represent all of the changes? If not, maybe we could sync up over email, or you could point me at a document describing the design.
Fady Samuel
Comment 6 2012-03-06 07:16:10 PST
(In reply to comment #5) > I was hoping this work wouldn't require WebKit changes. Does this patch represent all of the changes? If not, maybe we could sync up over email, or you could point me at a document describing the design. This is all of it, yes.
Fady Samuel
Comment 7 2012-03-06 07:52:45 PST
Fady Samuel
Comment 8 2012-03-06 07:53:49 PST
(In reply to comment #5) > I was hoping this work wouldn't require WebKit changes. Does this patch represent all of the changes? If not, maybe we could sync up over email, or you could point me at a document describing the design. I've just reduced the number of lines of change here, and I'm continuing to tweak the chromium side changes.
Adam Barth
Comment 9 2012-03-06 10:24:53 PST
Comment on attachment 130383 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=130383&action=review > Source/Platform/chromium/public/WebGraphicsContext3D.h:150 > + virtual void playDead() { } This function doesn't appear to be implemented or called anywhere.
Fady Samuel
Comment 10 2012-03-06 10:27:50 PST
(In reply to comment #9) > (From update of attachment 130383 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=130383&action=review > > > Source/Platform/chromium/public/WebGraphicsContext3D.h:150 > > + virtual void playDead() { } > > This function doesn't appear to be implemented or called anywhere. It's implemented outside of WebKit. This is another patch-in-progress. The name is a bit silly and may change or this may go away completely. I'm still iterating.
James Robinson
Comment 11 2012-03-06 10:34:07 PST
You should not be modifying WebKit at all for this. To control what context the compositor is using for a given WebView, override the implementation of WebViewClient::createGraphicsContext3D()
Fady Samuel
Comment 12 2012-03-06 10:40:13 PST
(In reply to comment #11) > You should not be modifying WebKit at all for this. To control what context the compositor is using for a given WebView, override the implementation of WebViewClient::createGraphicsContext3D() Trying that out now. I've been prototyping locally for a while, and things have changed quite a bit since. Thanks :)
Fady Samuel
Comment 13 2012-03-06 10:45:14 PST
(In reply to comment #11) > You should not be modifying WebKit at all for this. To control what context the compositor is using for a given WebView, override the implementation of WebViewClient::createGraphicsContext3D() You are absolutely right! Sweet thanks! I love reducing lines of code on cls. :-)
Fady Samuel
Comment 14 2012-03-06 10:46:04 PST
James Robinson
Comment 15 2012-03-06 10:48:17 PST
Comment on attachment 130405 [details] Patch ...and if you are doing that then you don't need the playDead() either, since you can refer to the more-concrete type from chromium land.
Fady Samuel
Comment 16 2012-03-06 10:59:50 PST
(In reply to comment #15) > (From update of attachment 130405 [details]) > ...and if you are doing that then you don't need the playDead() either, since you can refer to the more-concrete type from chromium land. The purpose of "playDead" is to tell the WebGraphicsContext3D to pretend that the context is lost, and so Chromium will attempt to create a new graphics context in place of the existing one. There might be a better way to accomplish what I'm trying to accomplish here.
Fady Samuel
Comment 17 2012-03-26 16:47:46 PDT
There is no longer any need for WebKit changes to support the browser plugin except for this which is now landing: https://bugs.webkit.org/show_bug.cgi?id=81954
Note You need to log in before you can comment on or make changes to this bug.