[chromium] Don't get callbacks or create GrContext from unowned WebGraphicsContext3D
https://bugs.webkit.org/show_bug.cgi?id=111638

Reviewed by James Robinson.

If the context is not owned, it's lifetime is not guaranteed, and by the time
the GraphicsContext3D is destroyed, the WGC3D can already be deleted.

When the context is not owned by the GraphicsContext3D, then don't clean it up
in the destructor or set up callbacks, as these are the owner's responsibility.

* platform/chromium/support/GraphicsContext3DPrivate.cpp:
(WebCore::GraphicsContext3DPrivate::~GraphicsContext3DPrivate):
(WebCore::GraphicsContext3DPrivate::grContext):
(WebCore::GraphicsContext3DPrivate::setContextLostCallback):
(WebCore::GraphicsContext3DPrivate::setErrorMessageCallback):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed gardening: rebaselines.

* platform/chromium-mac-snowleopard/svg/custom/foreign-object-skew-expected.png:
* platform/chromium-win/svg/custom/foreign-object-skew-expected.png:
* platform/chromium-win/svg/custom/foreign-object-skew-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[chromium] Remove WebSharedGraphicsContext3D class
https://bugs.webkit.org/show_bug.cgi?id=111492

Reviewed by James Robinson.

Source/Platform:

* Platform.gypi:
* chromium/public/WebSharedGraphicsContext3D.h: Removed.

Source/WebCore:

Removing dead code, no new tests.

* WebCore.gypi:
* platform/chromium/support/WebSharedGraphicsContext3D.cpp: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        [Mac] Synthetic ResourceResponses cannot be sent over IPC without losing most information
        https://bugs.webkit.org/show_bug.cgi?id=111623

        Reviewed by Brady Eidson.

        * Shared/WebCoreArgumentCoders.cpp:
        * Shared/WebCoreArgumentCoders.h:
        (CoreIPC::::encode): Made the decision on whether to serialize WebCore data in
        ResourceResponse dynamic. If the platform data is out of date, we need both
        (because some platforms use encodePlatformData() to pass additional information).
        (CoreIPC::::decode): Decode platform data first, because this overwrites the ResourceResponse.

        * Shared/mac/WebCoreArgumentCodersMac.mm: (CoreIPC::::encodePlatformData): Don't
        encode NSURLResponse if it's out of date. We may have a bad NSURLResponse with 0
        status code given to client, but it was almost certainly the same on sending side.
        WebCore doesn't mutate real responses - it either keeps them as is, or builds
        entirely synthetic ones.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145007 268f45cc-cd09-0410-ab3c-d52691b4dbfc