Bug 96585 - [chromium] NOT FOR REVIEW - gpu memmgr context lost prototype
: [chromium] NOT FOR REVIEW - gpu memmgr context lost prototype
Status: RESOLVED WONTFIX
: WebKit
New Bugs
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-09-12 17:54 PST by
Modified: 2013-04-15 08:43 PST (History)


Attachments
Patch (9.87 KB, patch)
2012-09-12 17:54 PST, Christopher Cameron
no flags Review Patch | Details | Formatted Diff | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2012-09-12 17:54:18 PST
[chromium] NOT FOR REVIEW - gpu memmgr context lost prototype
------- Comment #1 From 2012-09-12 17:54:30 PST -------
Created an attachment (id=163750) [details]
Patch
------- Comment #2 From 2012-09-12 17:57:58 PST -------
Attachment 163750 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1
Source/WebCore/platform/graphics/chromium/cc/CCRenderer.h:53:  Missing space inside { }.  [whitespace/braces] [5]
Total errors found: 1 in 9 files


If any of these errors are false positives, please file a bug against check-webkit-style.
------- Comment #3 From 2012-09-12 17:59:20 PST -------
(From update of attachment 163750 [details])
Upload with --no-review if it's not ready for review - if the flag it set it goes into http://webkit.org/pending-review
------- Comment #4 From 2012-09-12 18:01:56 PST -------
(In reply to comment #3)
> (From update of attachment 163750 [details] [details])
> Upload with --no-review if it's not ready for review - if the flag it set it goes into http://webkit.org/pending-review

Thanks -- sorry!
------- Comment #5 From 2012-09-12 18:02:17 PST -------
This works ONLY with threaded compositing (single-threaded hangs).  It also flashes checkerboards when switching to a tab that has had its context destroyed.

There are prints added that should add something like:
    <onControlledLostContext>
        In GPU process: GLContext::~GLContext (8 contexts exist)
    </onControlledLostContext>

The destruction of the renderer-side context is inside the re-creation logic.  This adds a separate function that does the renderer-side context destruction.

With just this patch, you won't see the "In GPU process" stuff -- you need  https://codereview.chromium.org/10913240 as well for that.

With just this patch, you'll also lose the context as soon as you change tabs.  With the non-WebKit patch, you'll be allowed a budget of 8 contexts.