<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[212638] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/212638">212638</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2017-02-20 08:52:46 -0800 (Mon, 20 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Remove code under USE(GRAPHICS_SURFACE)
https://bugs.webkit.org/show_bug.cgi?id=168592

Patch by Carlos Garcia Campos &lt;cgarcia@igalia.com&gt; on 2017-02-20
Reviewed by Michael Catanzaro.

This was only used by EFL port.

Source/WebCore:

* platform/TextureMapper.cmake:
* platform/graphics/opengl/GLPlatformSurface.cpp: Removed.
* platform/graphics/surfaces/GLTransportSurface.cpp: Removed.
* platform/graphics/surfaces/GLTransportSurface.h: Removed.
* platform/graphics/surfaces/GraphicsSurface.cpp: Removed.
* platform/graphics/surfaces/GraphicsSurface.h: Removed.
* platform/graphics/surfaces/GraphicsSurfaceToken.h: Removed.
* platform/graphics/surfaces/egl/EGLConfigSelector.cpp: Removed.
* platform/graphics/surfaces/egl/EGLConfigSelector.h: Removed.
* platform/graphics/surfaces/egl/EGLContext.cpp: Removed.
* platform/graphics/surfaces/egl/EGLContext.h: Removed.
* platform/graphics/surfaces/egl/EGLHelper.cpp: Removed.
* platform/graphics/surfaces/egl/EGLHelper.h: Removed.
* platform/graphics/surfaces/egl/EGLSurface.cpp: Removed.
* platform/graphics/surfaces/egl/EGLSurface.h: Removed.
* platform/graphics/surfaces/egl/EGLXSurface.cpp: Removed.
* platform/graphics/surfaces/egl/EGLXSurface.h: Removed.
* platform/graphics/surfaces/glx/GLXConfigSelector.h: Removed.
* platform/graphics/surfaces/glx/GLXContext.cpp: Removed.
* platform/graphics/surfaces/glx/GLXContext.h: Removed.
* platform/graphics/surfaces/glx/GLXSurface.cpp: Removed.
* platform/graphics/surfaces/glx/GLXSurface.h: Removed.
* platform/graphics/surfaces/glx/X11Helper.cpp: Removed.
* platform/graphics/surfaces/glx/X11Helper.h: Removed.
* platform/graphics/texmap/TextureMapperBackingStore.cpp:
* platform/graphics/texmap/TextureMapperBackingStore.h:
* platform/graphics/texmap/TextureMapperPlatformLayer.h:
(WebCore::TextureMapperPlatformLayer::setClient):
* platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp: Removed.
* platform/graphics/texmap/TextureMapperSurfaceBackingStore.h: Removed.
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
(WebCore::CoordinatedGraphicsLayer::setContentsNeedsDisplay):
(WebCore::CoordinatedGraphicsLayer::setContentsToPlatformLayer):
(WebCore::CoordinatedGraphicsLayer::syncPlatformLayer):
* platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
* platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
(WebCore::CoordinatedGraphicsLayerState::CoordinatedGraphicsLayerState):

Source/WebKit2:

* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
(IPC::ArgumentCoder&lt;CoordinatedGraphicsLayerState&gt;::encode):
(IPC::ArgumentCoder&lt;CoordinatedGraphicsLayerState&gt;::decode):
* Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
* Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
(WebKit::CoordinatedGraphicsScene::syncPlatformLayerIfNeeded):
(WebKit::CoordinatedGraphicsScene::deleteLayer):
(WebKit::CoordinatedGraphicsScene::assignImageBackingToLayer):
(WebKit::CoordinatedGraphicsScene::purgeGLResources):
* Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h:
* Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
(WebKit::WebCoordinatedSurface::Handle::encode):
(WebKit::WebCoordinatedSurface::Handle::decode):
(WebKit::WebCoordinatedSurface::create):
(WebKit::WebCoordinatedSurface::createGraphicsContext):
(WebKit::WebCoordinatedSurface::createHandle):
(WebKit::WebCoordinatedSurface::copyToTexture):
* Shared/CoordinatedGraphics/WebCoordinatedSurface.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformTextureMappercmake">trunk/Source/WebCore/platform/TextureMapper.cmake</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperBackingStorecpp">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperBackingStoreh">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperPlatformLayerh">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsLayercpp">trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsLayerh">trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsStateh">trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h</a></li>
<li><a href="#trunkSourceWebKit2ChangeLog">trunk/Source/WebKit2/ChangeLog</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsArgumentCoderscpp">trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsArgumentCodersh">trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsScenecpp">trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsSceneh">trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsWebCoordinatedSurfacecpp">trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp</a></li>
<li><a href="#trunkSourceWebKit2SharedCoordinatedGraphicsWebCoordinatedSurfaceh">trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.h</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreplatformgraphicsopenglGLPlatformSurfacecpp">trunk/Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp</a></li>
<li>trunk/Source/WebCore/platform/graphics/surfaces/</li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperSurfaceBackingStorecpp">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicstexmapTextureMapperSurfaceBackingStoreh">trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/ChangeLog        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -1,3 +1,51 @@
</span><ins>+2017-02-20  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
+
+        Remove code under USE(GRAPHICS_SURFACE)
+        https://bugs.webkit.org/show_bug.cgi?id=168592
+
+        Reviewed by Michael Catanzaro.
+
+        This was only used by EFL port.
+
+        * platform/TextureMapper.cmake:
+        * platform/graphics/opengl/GLPlatformSurface.cpp: Removed.
+        * platform/graphics/surfaces/GLTransportSurface.cpp: Removed.
+        * platform/graphics/surfaces/GLTransportSurface.h: Removed.
+        * platform/graphics/surfaces/GraphicsSurface.cpp: Removed.
+        * platform/graphics/surfaces/GraphicsSurface.h: Removed.
+        * platform/graphics/surfaces/GraphicsSurfaceToken.h: Removed.
+        * platform/graphics/surfaces/egl/EGLConfigSelector.cpp: Removed.
+        * platform/graphics/surfaces/egl/EGLConfigSelector.h: Removed.
+        * platform/graphics/surfaces/egl/EGLContext.cpp: Removed.
+        * platform/graphics/surfaces/egl/EGLContext.h: Removed.
+        * platform/graphics/surfaces/egl/EGLHelper.cpp: Removed.
+        * platform/graphics/surfaces/egl/EGLHelper.h: Removed.
+        * platform/graphics/surfaces/egl/EGLSurface.cpp: Removed.
+        * platform/graphics/surfaces/egl/EGLSurface.h: Removed.
+        * platform/graphics/surfaces/egl/EGLXSurface.cpp: Removed.
+        * platform/graphics/surfaces/egl/EGLXSurface.h: Removed.
+        * platform/graphics/surfaces/glx/GLXConfigSelector.h: Removed.
+        * platform/graphics/surfaces/glx/GLXContext.cpp: Removed.
+        * platform/graphics/surfaces/glx/GLXContext.h: Removed.
+        * platform/graphics/surfaces/glx/GLXSurface.cpp: Removed.
+        * platform/graphics/surfaces/glx/GLXSurface.h: Removed.
+        * platform/graphics/surfaces/glx/X11Helper.cpp: Removed.
+        * platform/graphics/surfaces/glx/X11Helper.h: Removed.
+        * platform/graphics/texmap/TextureMapperBackingStore.cpp:
+        * platform/graphics/texmap/TextureMapperBackingStore.h:
+        * platform/graphics/texmap/TextureMapperPlatformLayer.h:
+        (WebCore::TextureMapperPlatformLayer::setClient):
+        * platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp: Removed.
+        * platform/graphics/texmap/TextureMapperSurfaceBackingStore.h: Removed.
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
+        (WebCore::CoordinatedGraphicsLayer::CoordinatedGraphicsLayer):
+        (WebCore::CoordinatedGraphicsLayer::setContentsNeedsDisplay):
+        (WebCore::CoordinatedGraphicsLayer::setContentsToPlatformLayer):
+        (WebCore::CoordinatedGraphicsLayer::syncPlatformLayer):
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:
+        * platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h:
+        (WebCore::CoordinatedGraphicsLayerState::CoordinatedGraphicsLayerState):
+
</ins><span class="cx"> 2017-02-20  Dean Jackson  &lt;dino@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add 'webglcontextchanged' WebGLContextEvent
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformTextureMappercmake"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/TextureMapper.cmake (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/TextureMapper.cmake        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/TextureMapper.cmake        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -11,7 +11,6 @@
</span><span class="cx">     platform/graphics/texmap/TextureMapperFPSCounter.cpp
</span><span class="cx">     platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp
</span><span class="cx">     platform/graphics/texmap/TextureMapperLayer.cpp
</span><del>-    platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp
</del><span class="cx">     platform/graphics/texmap/TextureMapperTile.cpp
</span><span class="cx">     platform/graphics/texmap/TextureMapperTiledBackingStore.cpp
</span><span class="cx"> )
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsopenglGLPlatformSurfacecpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/opengl/GLPlatformSurface.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -1,119 +0,0 @@
</span><del>-/*
- * Copyright (C) 2012 Intel Corporation. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include &quot;config.h&quot;
-
-#if ENABLE(GRAPHICS_CONTEXT_3D)
-#include &quot;GLPlatformSurface.h&quot;
-
-#if USE(GLX)
-#include &quot;GLXSurface.h&quot;
-#endif
-
-#if USE(EGL)
-#include &quot;EGLSurface.h&quot;
-#endif
-
-#include &quot;NotImplemented.h&quot;
-
-namespace WebCore {
-
-std::unique_ptr&lt;GLPlatformSurface&gt; GLPlatformSurface::createOffScreenSurface(SurfaceAttributes attributes)
-{
-    std::unique_ptr&lt;GLPlatformSurface&gt; surface;
-#if USE(GLX)
-    surface = std::make_unique&lt;GLXOffScreenSurface&gt;(attributes);
-#elif USE(EGL) &amp;&amp; USE(GRAPHICS_SURFACE)
-    surface = EGLOffScreenSurface::createOffScreenSurface(attributes);
-#else
-    // FIXME: Need WGL implementation for Windows
-    notImplemented();
-#endif
-
-    if (surface &amp;&amp; surface-&gt;drawable())
-        return surface;
-
-    return nullptr;
-}
-
-GLPlatformSurface::GLPlatformSurface(SurfaceAttributes)
-    : m_drawable(0)
-    , m_bufferHandle(0)
-{
-}
-
-GLPlatformSurface::~GLPlatformSurface()
-{
-}
-
-PlatformBufferHandle GLPlatformSurface::handle() const
-{
-    return m_bufferHandle;
-}
-
-PlatformDrawable GLPlatformSurface::drawable() const
-{
-    return m_drawable;
-}
-
-const IntRect&amp; GLPlatformSurface::geometry() const
-{
-    return m_rect;
-}
-
-PlatformSurfaceConfig GLPlatformSurface::configuration()
-{
-    return 0;
-}
-
-void GLPlatformSurface::swapBuffers()
-{
-    notImplemented();
-}
-
-void GLPlatformSurface::onMakeCurrent()
-{
-}
-
-void GLPlatformSurface::updateContents(const uint32_t)
-{
-}
-
-void GLPlatformSurface::setGeometry(const IntRect&amp;)
-{
-}
-
-void GLPlatformSurface::destroy()
-{
-}
-
-GLPlatformSurface::SurfaceAttributes GLPlatformSurface::attributes() const
-{
-    return GLPlatformSurface::Default;
-}
-
-}
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperBackingStorecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -25,11 +25,6 @@
</span><span class="cx"> #include &quot;ImageBuffer.h&quot;
</span><span class="cx"> #include &quot;TextureMapper.h&quot;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurface.h&quot;
-#include &quot;TextureMapperGL.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> unsigned TextureMapperBackingStore::calculateExposedTileEdges(const FloatRect&amp; totalRect, const FloatRect&amp; tileRect)
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperBackingStoreh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperBackingStore.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -26,10 +26,6 @@
</span><span class="cx"> #include &quot;TextureMapperPlatformLayer.h&quot;
</span><span class="cx"> #include &lt;wtf/RefPtr.h&gt;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurface.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="cx"> class GraphicsLayer;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperPlatformLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayer.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -22,10 +22,6 @@
</span><span class="cx"> 
</span><span class="cx"> #if USE(TEXTURE_MAPPER)
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurface.h&quot;
-#endif
-
</del><span class="cx"> #include &quot;TextureMapper.h&quot;
</span><span class="cx"> #include &quot;TransformationMatrix.h&quot;
</span><span class="cx"> 
</span><span class="lines">@@ -51,12 +47,6 @@
</span><span class="cx">     {
</span><span class="cx">         m_client = client;
</span><span class="cx">     }
</span><del>-#if USE(GRAPHICS_SURFACE)
-    virtual IntSize platformLayerSize() const { return IntSize(); }
-    virtual uint32_t copyToGraphicsSurface() { return 0; }
-    virtual GraphicsSurfaceToken graphicsSurfaceToken() const { return GraphicsSurfaceToken(); }
-    virtual GraphicsSurface::Flags graphicsSurfaceFlags() const { return  GraphicsSurface::SupportsTextureTarget | GraphicsSurface::SupportsSharing; }
-#endif
</del><span class="cx"> 
</span><span class="cx"> protected:
</span><span class="cx">     TextureMapperPlatformLayer::Client* client() { return m_client; }
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperSurfaceBackingStorecpp"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -1,54 +0,0 @@
</span><del>-/*
- Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB.  If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
- */
-
-#include &quot;config.h&quot;
-
-#if USE(GRAPHICS_SURFACE)
-#include &quot;TextureMapperSurfaceBackingStore.h&quot;
-
-#include &quot;GraphicsSurface.h&quot;
-
-namespace WebCore {
-
-void TextureMapperSurfaceBackingStore::setGraphicsSurface(PassRefPtr&lt;GraphicsSurface&gt; surface)
-{
-    m_graphicsSurface = surface;
-}
-
-void TextureMapperSurfaceBackingStore::swapBuffersIfNeeded(uint32_t)
-{
-    if (m_graphicsSurface)
-        m_graphicsSurface-&gt;swapBuffers();
-}
-
-RefPtr&lt;BitmapTexture&gt; TextureMapperSurfaceBackingStore::texture() const
-{
-    // FIXME: Instead of just returning an empty texture, we should wrap the texture contents into a BitmapTexture.
-    RefPtr&lt;BitmapTexture&gt; emptyTexture;
-    return emptyTexture;
-}
-
-void TextureMapperSurfaceBackingStore::paintToTextureMapper(TextureMapper&amp; textureMapper, const FloatRect&amp; targetRect, const TransformationMatrix&amp; transform, float opacity)
-{
-    if (m_graphicsSurface)
-        m_graphicsSurface-&gt;paintToTextureMapper(textureMapper, targetRect, transform, opacity);
-}
-
-} // namespace WebCore
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapTextureMapperSurfaceBackingStoreh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/TextureMapperSurfaceBackingStore.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -1,55 +0,0 @@
</span><del>-/*
- Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public License
- along with this library; see the file COPYING.LIB.  If not, write to
- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA.
- */
-
-#ifndef TextureMapperSurfaceBackingStore_h
-#define TextureMapperSurfaceBackingStore_h
-
-#if USE(GRAPHICS_SURFACE)
-
-#include &quot;GraphicsSurface.h&quot;
-#include &quot;TextureMapperBackingStore.h&quot;
-#include &lt;wtf/RefPtr.h&gt;
-
-namespace WebCore {
-
-class TextureMapper;
-class FloatRect;
-
-class TextureMapperSurfaceBackingStore : public TextureMapperBackingStore {
-public:
-    static PassRefPtr&lt;TextureMapperSurfaceBackingStore&gt; create() { return adoptRef(new TextureMapperSurfaceBackingStore); }
-    void setGraphicsSurface(PassRefPtr&lt;GraphicsSurface&gt;);
-    void swapBuffersIfNeeded(uint32_t frontBuffer);
-    virtual RefPtr&lt;BitmapTexture&gt; texture() const;
-    virtual void paintToTextureMapper(TextureMapper&amp;, const FloatRect&amp;, const TransformationMatrix&amp;, float);
-    virtual ~TextureMapperSurfaceBackingStore() { }
-
-private:
-    TextureMapperSurfaceBackingStore()
-        : TextureMapperBackingStore()
-        { }
-
-    RefPtr&lt;GraphicsSurface&gt; m_graphicsSurface;
-};
-
-}
-
-#endif
-
-#endif
</del></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsLayercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -120,10 +120,6 @@
</span><span class="cx">     , m_movingVisibleRect(false)
</span><span class="cx">     , m_pendingContentsScaleAdjustment(false)
</span><span class="cx">     , m_pendingVisibleRectAdjustment(false)
</span><del>-#if USE(GRAPHICS_SURFACE)
-    , m_isValidPlatformLayer(false)
-    , m_pendingPlatformLayerOperation(None)
-#endif
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     , m_shouldSyncPlatformLayer(false)
</span><span class="cx">     , m_shouldUpdatePlatformLayer(false)
</span><span class="lines">@@ -379,11 +375,8 @@
</span><span class="cx"> 
</span><span class="cx"> void CoordinatedGraphicsLayer::setContentsNeedsDisplay()
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
</del><ins>+#if USE(COORDINATED_GRAPHICS_THREADED)
</ins><span class="cx">     if (m_platformLayer)
</span><del>-        m_pendingPlatformLayerOperation |= SyncPlatformLayer;
-#elif USE(COORDINATED_GRAPHICS_THREADED)
-    if (m_platformLayer)
</del><span class="cx">         m_shouldUpdatePlatformLayer = true;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -393,30 +386,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CoordinatedGraphicsLayer::setContentsToPlatformLayer(PlatformLayer* platformLayer, ContentsLayerPurpose)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (m_platformLayer) {
-        ASSERT(m_platformLayerToken.isValid());
-        if (!platformLayer) {
-            m_pendingPlatformLayerOperation |= DestroyPlatformLayer;
-            m_pendingPlatformLayerOperation &amp;= ~CreatePlatformLayer;
-        }  else if ((m_platformLayerSize != platformLayer-&gt;platformLayerSize()) || (m_platformLayerToken != platformLayer-&gt;graphicsSurfaceToken())) {
-            // m_platformLayerToken can be different to platformLayer-&gt;graphicsSurfaceToken(), even if m_platformLayer equals platformLayer.
-            m_pendingPlatformLayerOperation |= RecreatePlatformLayer;
-        }
-    } else {
-        if (platformLayer)
-            m_pendingPlatformLayerOperation |= CreateAndSyncPlatformLayer;
-    }
-
-    m_platformLayer = platformLayer;
-    // m_platformLayerToken is updated only here. 
-    // In detail, when GraphicsContext3D is changed or reshaped, m_platformLayerToken is changed and setContentsToPlatformLayer() is always called.
-    m_platformLayerSize = m_platformLayer ? m_platformLayer-&gt;platformLayerSize() : IntSize();
-    m_platformLayerToken = m_platformLayer ? m_platformLayer-&gt;graphicsSurfaceToken() : GraphicsSurfaceToken();
-    ASSERT(!(!m_platformLayerToken.isValid() &amp;&amp; m_platformLayer));
-
-    notifyFlushRequired();
-#elif USE(COORDINATED_GRAPHICS_THREADED)
</del><ins>+#if USE(COORDINATED_GRAPHICS_THREADED)
</ins><span class="cx">     if (m_platformLayer != platformLayer)
</span><span class="cx">         m_shouldSyncPlatformLayer = true;
</span><span class="cx"> 
</span><span class="lines">@@ -724,22 +694,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CoordinatedGraphicsLayer::syncPlatformLayer()
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    destroyPlatformLayerIfNeeded();
-    createPlatformLayerIfNeeded();
-
-    if (!(m_pendingPlatformLayerOperation &amp; SyncPlatformLayer))
-        return;
-
-    m_pendingPlatformLayerOperation &amp;= ~SyncPlatformLayer;
-
-    if (!m_isValidPlatformLayer)
-        return;
-
-    ASSERT(m_platformLayer);
-    m_layerState.platformLayerFrontBuffer = m_platformLayer-&gt;copyToGraphicsSurface();
-    m_layerState.platformLayerShouldSwapBuffers = true;
-#elif USE(COORDINATED_GRAPHICS_THREADED)
</del><ins>+#if USE(COORDINATED_GRAPHICS_THREADED)
</ins><span class="cx">     if (!m_shouldSyncPlatformLayer)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -762,39 +717,6 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-void CoordinatedGraphicsLayer::destroyPlatformLayerIfNeeded()
-{
-    if (!(m_pendingPlatformLayerOperation &amp; DestroyPlatformLayer))
-        return;
-
-    if (m_isValidPlatformLayer) {
-        m_isValidPlatformLayer = false;
-        m_layerState.platformLayerToken = GraphicsSurfaceToken();
-        m_layerState.platformLayerChanged = true;
-    }
-
-    m_pendingPlatformLayerOperation &amp;= ~DestroyPlatformLayer;
-}
-
-void CoordinatedGraphicsLayer::createPlatformLayerIfNeeded()
-{
-    if (!(m_pendingPlatformLayerOperation &amp; CreatePlatformLayer))
-        return;
-
-    ASSERT(m_platformLayer);
-    if (!m_isValidPlatformLayer) {
-        m_layerState.platformLayerSize = m_platformLayer-&gt;platformLayerSize();
-        m_layerState.platformLayerToken = m_platformLayer-&gt;graphicsSurfaceToken();
-        m_layerState.platformLayerSurfaceFlags = m_platformLayer-&gt;graphicsSurfaceFlags();
-        m_layerState.platformLayerChanged = true;
-        m_isValidPlatformLayer = true;
-    }
-
-    m_pendingPlatformLayerOperation &amp;= ~CreatePlatformLayer;
-}
-#endif
-
</del><span class="cx"> void CoordinatedGraphicsLayer::flushCompositingStateForThisLayerOnly()
</span><span class="cx"> {
</span><span class="cx">     // When we have a transform animation, we need to update visible rect every frame to adjust the visible rect of a backing store.
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsLayerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -35,9 +35,6 @@
</span><span class="cx"> #include &quot;TiledBackingStore.h&quot;
</span><span class="cx"> #include &quot;TiledBackingStoreClient.h&quot;
</span><span class="cx"> #include &quot;TransformationMatrix.h&quot;
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurfaceToken.h&quot;
-#endif
</del><span class="cx"> #include &lt;wtf/text/StringHash.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -151,19 +148,6 @@
</span><span class="cx"> private:
</span><span class="cx">     bool isCoordinatedGraphicsLayer() const override { return true; }
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    enum PendingPlatformLayerOperation {
-        None = 0x00,
-        CreatePlatformLayer = 0x01,
-        DestroyPlatformLayer = 0x02,
-        SyncPlatformLayer = 0x04,
-        CreateAndSyncPlatformLayer = CreatePlatformLayer | SyncPlatformLayer,
-        RecreatePlatformLayer = CreateAndSyncPlatformLayer | DestroyPlatformLayer
-    };
-
-    void destroyPlatformLayerIfNeeded();
-    void createPlatformLayerIfNeeded();
-#endif
</del><span class="cx">     void syncPlatformLayer();
</span><span class="cx">     void updatePlatformLayer();
</span><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="lines">@@ -232,10 +216,6 @@
</span><span class="cx">     bool m_movingVisibleRect : 1;
</span><span class="cx">     bool m_pendingContentsScaleAdjustment : 1;
</span><span class="cx">     bool m_pendingVisibleRectAdjustment : 1;
</span><del>-#if USE(GRAPHICS_SURFACE)
-    bool m_isValidPlatformLayer : 1;
-    unsigned m_pendingPlatformLayerOperation : 3;
-#endif
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     bool m_shouldSyncPlatformLayer : 1;
</span><span class="cx">     bool m_shouldUpdatePlatformLayer : 1;
</span><span class="lines">@@ -250,10 +230,6 @@
</span><span class="cx">     RefPtr&lt;CoordinatedImageBacking&gt; m_coordinatedImageBacking;
</span><span class="cx"> 
</span><span class="cx">     PlatformLayer* m_platformLayer;
</span><del>-#if USE(GRAPHICS_SURFACE)
-    IntSize m_platformLayerSize;
-    GraphicsSurfaceToken m_platformLayerToken;
-#endif
</del><span class="cx">     Timer m_animationStartedTimer;
</span><span class="cx">     TextureMapperAnimations m_animations;
</span><span class="cx">     double m_lastAnimationStartTime;
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicstexmapcoordinatedCoordinatedGraphicsStateh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsState.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -39,11 +39,6 @@
</span><span class="cx"> #include &quot;TextureMapperAnimation.h&quot;
</span><span class="cx"> #include &quot;TransformationMatrix.h&quot;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurface.h&quot;
-#include &quot;GraphicsSurfaceToken.h&quot;
-#endif
-
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx"> #include &quot;TextureMapperPlatformLayerProxy.h&quot;
</span><span class="cx"> #endif
</span><span class="lines">@@ -131,9 +126,6 @@
</span><span class="cx">         , replica(InvalidCoordinatedLayerID)
</span><span class="cx">         , mask(InvalidCoordinatedLayerID)
</span><span class="cx">         , imageID(InvalidCoordinatedImageBackingID)
</span><del>-#if USE(GRAPHICS_SURFACE)
-        , platformLayerFrontBuffer(0)
-#endif
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">         , platformLayerProxy(0)
</span><span class="cx"> #endif
</span><span class="lines">@@ -164,13 +156,6 @@
</span><span class="cx">     unsigned repaintCount;
</span><span class="cx">     Vector&lt;TileUpdateInfo&gt; tilesToUpdate;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    IntSize platformLayerSize;
-    GraphicsSurfaceToken platformLayerToken;
-    uint32_t platformLayerFrontBuffer;
-    GraphicsSurface::Flags platformLayerSurfaceFlags;
-#endif
-
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     RefPtr&lt;TextureMapperPlatformLayerProxy&gt; platformLayerProxy;
</span><span class="cx"> #endif
</span></span></pre></div>
<a id="trunkSourceWebKit2ChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/ChangeLog (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/ChangeLog        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/ChangeLog        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -1,5 +1,33 @@
</span><span class="cx"> 2017-02-20  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
</span><span class="cx"> 
</span><ins>+        Remove code under USE(GRAPHICS_SURFACE)
+        https://bugs.webkit.org/show_bug.cgi?id=168592
+
+        Reviewed by Michael Catanzaro.
+
+        This was only used by EFL port.
+
+        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp:
+        (IPC::ArgumentCoder&lt;CoordinatedGraphicsLayerState&gt;::encode):
+        (IPC::ArgumentCoder&lt;CoordinatedGraphicsLayerState&gt;::decode):
+        * Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h:
+        * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp:
+        (WebKit::CoordinatedGraphicsScene::syncPlatformLayerIfNeeded):
+        (WebKit::CoordinatedGraphicsScene::deleteLayer):
+        (WebKit::CoordinatedGraphicsScene::assignImageBackingToLayer):
+        (WebKit::CoordinatedGraphicsScene::purgeGLResources):
+        * Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h:
+        * Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp:
+        (WebKit::WebCoordinatedSurface::Handle::encode):
+        (WebKit::WebCoordinatedSurface::Handle::decode):
+        (WebKit::WebCoordinatedSurface::create):
+        (WebKit::WebCoordinatedSurface::createGraphicsContext):
+        (WebKit::WebCoordinatedSurface::createHandle):
+        (WebKit::WebCoordinatedSurface::copyToTexture):
+        * Shared/CoordinatedGraphics/WebCoordinatedSurface.h:
+
+2017-02-20  Carlos Garcia Campos  &lt;cgarcia@igalia.com&gt;
+
</ins><span class="cx">         Reduce platform ifdefs in WebKit2 custom protocols implementation
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=165028
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsArgumentCoderscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -51,10 +51,6 @@
</span><span class="cx"> #include &lt;WebCore/TransformationMatrix.h&gt;
</span><span class="cx"> #include &lt;WebCore/TranslateTransformOperation.h&gt;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &lt;WebCore/GraphicsSurface.h&gt;
-#endif
-
</del><span class="cx"> using namespace WebCore;
</span><span class="cx"> using namespace WebKit;
</span><span class="cx"> 
</span><span class="lines">@@ -585,17 +581,6 @@
</span><span class="cx">     return decoder.decode(animations.animations());
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-void ArgumentCoder&lt;WebCore::GraphicsSurfaceToken&gt;::encode(Encoder&amp; encoder, const WebCore::GraphicsSurfaceToken&amp; token)
-{
-#if OS(DARWIN)
-    encoder &lt;&lt; Attachment(token.frontBufferHandle, MACH_MSG_TYPE_MOVE_SEND);
-    encoder &lt;&lt; Attachment(token.backBufferHandle, MACH_MSG_TYPE_MOVE_SEND);
-#elif OS(LINUX)
-    encoder &lt;&lt; token.frontBufferHandle;
-#endif
-}
-
</del><span class="cx"> bool ArgumentCoder&lt;WebCore::GraphicsSurfaceToken&gt;::decode(Decoder&amp; decoder, WebCore::GraphicsSurfaceToken&amp; token)
</span><span class="cx"> {
</span><span class="cx"> #if OS(DARWIN)
</span><span class="lines">@@ -692,15 +677,6 @@
</span><span class="cx"> 
</span><span class="cx">     encoder &lt;&lt; state.tilesToUpdate;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (state.platformLayerChanged) {
-        encoder &lt;&lt; state.platformLayerSize;
-        encoder &lt;&lt; state.platformLayerToken;
-        encoder &lt;&lt; state.platformLayerFrontBuffer;
-        encoder &lt;&lt; state.platformLayerSurfaceFlags;
-    }
-#endif
-
</del><span class="cx">     if (state.committedScrollOffsetChanged)
</span><span class="cx">         encoder &lt;&lt; state.committedScrollOffset;
</span><span class="cx"> }
</span><span class="lines">@@ -780,22 +756,6 @@
</span><span class="cx">     if (!decoder.decode(state.tilesToUpdate))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (state.platformLayerChanged) {
-        if (!decoder.decode(state.platformLayerSize))
-            return false;
-
-        if (!decoder.decode(state.platformLayerToken))
-            return false;
-
-        if (!decoder.decode(state.platformLayerFrontBuffer))
-            return false;
-
-        if (!decoder.decode(state.platformLayerSurfaceFlags))
-            return false;
-    }
-#endif
-
</del><span class="cx">     if (state.committedScrollOffsetChanged &amp;&amp; !decoder.decode(state.committedScrollOffset))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsArgumentCodersh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsArgumentCoders.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -45,10 +45,6 @@
</span><span class="cx"> struct Length;
</span><span class="cx"> 
</span><span class="cx"> class FilterOperations;
</span><del>-
-#if USE(GRAPHICS_SURFACE)
-struct GraphicsSurfaceToken;
-#endif
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> namespace IPC {
</span><span class="lines">@@ -73,13 +69,6 @@
</span><span class="cx">     static bool decode(Decoder&amp;, WebCore::TextureMapperAnimation&amp;);
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-template&lt;&gt; struct ArgumentCoder&lt;WebCore::GraphicsSurfaceToken&gt; {
-    static void encode(Encoder&amp;, const WebCore::GraphicsSurfaceToken&amp;);
-    static bool decode(Decoder&amp;, WebCore::GraphicsSurfaceToken&amp;);
-};
-#endif
-
</del><span class="cx"> template&lt;&gt; struct ArgumentCoder&lt;WebCore::SurfaceUpdateInfo&gt; {
</span><span class="cx">     static void encode(Encoder&amp;, const WebCore::SurfaceUpdateInfo&amp;);
</span><span class="cx">     static bool decode(Decoder&amp;, WebCore::SurfaceUpdateInfo&amp;);
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsScenecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -177,21 +177,7 @@
</span><span class="cx"> 
</span><span class="cx"> void CoordinatedGraphicsScene::syncPlatformLayerIfNeeded(TextureMapperLayer* layer, const CoordinatedGraphicsLayerState&amp; state)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    ASSERT(m_textureMapper);
-
-    if (state.platformLayerChanged) {
-        destroyPlatformLayerIfNeeded(layer, state);
-        createPlatformLayerIfNeeded(layer, state);
-    }
-
-    if (state.platformLayerShouldSwapBuffers) {
-        ASSERT(m_surfaceBackingStores.contains(layer));
-        SurfaceBackingStoreMap::iterator it = m_surfaceBackingStores.find(layer);
-        RefPtr&lt;TextureMapperSurfaceBackingStore&gt; platformLayerBackingStore = it-&gt;value;
-        platformLayerBackingStore-&gt;swapBuffersIfNeeded(state.platformLayerFrontBuffer);
-    }
-#elif USE(COORDINATED_GRAPHICS_THREADED)
</del><ins>+#if USE(COORDINATED_GRAPHICS_THREADED)
</ins><span class="cx">     if (!state.platformLayerChanged)
</span><span class="cx">         return;
</span><span class="cx"> 
</span><span class="lines">@@ -213,28 +199,6 @@
</span><span class="cx"> }
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-void CoordinatedGraphicsScene::createPlatformLayerIfNeeded(TextureMapperLayer* layer, const CoordinatedGraphicsLayerState&amp; state)
-{
-    if (!state.platformLayerToken.isValid())
-        return;
-
-    RefPtr&lt;TextureMapperSurfaceBackingStore&gt; platformLayerBackingStore(TextureMapperSurfaceBackingStore::create());
-    m_surfaceBackingStores.set(layer, platformLayerBackingStore);
-    platformLayerBackingStore-&gt;setGraphicsSurface(GraphicsSurface::create(state.platformLayerSize, state.platformLayerSurfaceFlags, state.platformLayerToken));
-    layer-&gt;setContentsLayer(platformLayerBackingStore.get());
-}
-
-void CoordinatedGraphicsScene::destroyPlatformLayerIfNeeded(TextureMapperLayer* layer, const CoordinatedGraphicsLayerState&amp; state)
-{
-    if (state.platformLayerToken.isValid())
-        return;
-
-    m_surfaceBackingStores.remove(layer);
-    layer-&gt;setContentsLayer(0);
-}
-#endif
-
</del><span class="cx"> void CoordinatedGraphicsScene::setLayerRepaintCountIfNeeded(TextureMapperLayer* layer, const CoordinatedGraphicsLayerState&amp; state)
</span><span class="cx"> {
</span><span class="cx">     if (!layer-&gt;isShowingRepaintCounter() || !state.repaintCountChanged)
</span><span class="lines">@@ -380,9 +344,6 @@
</span><span class="cx"> 
</span><span class="cx">     m_backingStores.remove(layer.get());
</span><span class="cx">     m_fixedLayers.remove(layerID);
</span><del>-#if USE(GRAPHICS_SURFACE)
-    m_surfaceBackingStores.remove(layer.get());
-#endif
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     if (auto platformLayerProxy = m_platformLayerProxies.take(layer.get()))
</span><span class="cx">         platformLayerProxy-&gt;invalidate();
</span><span class="lines">@@ -568,11 +529,6 @@
</span><span class="cx"> 
</span><span class="cx"> void CoordinatedGraphicsScene::assignImageBackingToLayer(TextureMapperLayer* layer, CoordinatedImageBackingID imageID)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (m_surfaceBackingStores.contains(layer))
-        return;
-#endif
-
</del><span class="cx">     if (imageID == InvalidCoordinatedImageBackingID) {
</span><span class="cx">         layer-&gt;setContentsLayer(0);
</span><span class="cx">         return;
</span><span class="lines">@@ -672,9 +628,6 @@
</span><span class="cx"> 
</span><span class="cx">     m_imageBackings.clear();
</span><span class="cx">     m_releasedImageBackings.clear();
</span><del>-#if USE(GRAPHICS_SURFACE)
-    m_surfaceBackingStores.clear();
-#endif
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     for (auto&amp; proxy : m_platformLayerProxies.values())
</span><span class="cx">         proxy-&gt;invalidate();
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsCoordinatedGraphicsSceneh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/CoordinatedGraphicsScene.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -40,11 +40,6 @@
</span><span class="cx"> #include &lt;wtf/ThreadingPrimitives.h&gt;
</span><span class="cx"> #include &lt;wtf/Vector.h&gt;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &lt;WebCore/GraphicsSurface.h&gt;
-#include &lt;WebCore/TextureMapperSurfaceBackingStore.h&gt;
-#endif
-
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx"> #include &lt;WebCore/TextureMapperPlatformLayerProxy.h&gt;
</span><span class="cx"> #endif
</span><span class="lines">@@ -102,10 +97,6 @@
</span><span class="cx">     void setLayerFiltersIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
</span><span class="cx">     void setLayerAnimationsIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
</span><span class="cx">     void syncPlatformLayerIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
</span><del>-#if USE(GRAPHICS_SURFACE)
-    void createPlatformLayerIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
-    void destroyPlatformLayerIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
-#endif
</del><span class="cx">     void setLayerRepaintCountIfNeeded(WebCore::TextureMapperLayer*, const WebCore::CoordinatedGraphicsLayerState&amp;);
</span><span class="cx"> 
</span><span class="cx">     void syncUpdateAtlases(const WebCore::CoordinatedGraphicsState&amp;);
</span><span class="lines">@@ -167,11 +158,6 @@
</span><span class="cx"> 
</span><span class="cx">     HashSet&lt;RefPtr&lt;CoordinatedBackingStore&gt;&gt; m_backingStoresWithPendingBuffers;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    typedef HashMap&lt;WebCore::TextureMapperLayer*, RefPtr&lt;WebCore::TextureMapperSurfaceBackingStore&gt;&gt; SurfaceBackingStoreMap;
-    SurfaceBackingStoreMap m_surfaceBackingStores;
-#endif
-
</del><span class="cx"> #if USE(COORDINATED_GRAPHICS_THREADED)
</span><span class="cx">     typedef HashMap&lt;WebCore::TextureMapperLayer*, RefPtr&lt;WebCore::TextureMapperPlatformLayerProxy&gt;&gt; PlatformLayerProxyMap;
</span><span class="cx">     PlatformLayerProxyMap m_platformLayerProxies;
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsWebCoordinatedSurfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.cpp        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -43,11 +43,6 @@
</span><span class="cx"> void WebCoordinatedSurface::Handle::encode(IPC::Encoder&amp; encoder) const
</span><span class="cx"> {
</span><span class="cx">     encoder &lt;&lt; m_size &lt;&lt; m_flags;
</span><del>-#if USE(GRAPHICS_SURFACE)
-    encoder &lt;&lt; m_graphicsSurfaceToken;
-    if (m_graphicsSurfaceToken.isValid())
-        return;
-#endif
</del><span class="cx">     encoder &lt;&lt; m_bitmapHandle;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -57,12 +52,6 @@
</span><span class="cx">         return false;
</span><span class="cx">     if (!decoder.decode(handle.m_flags))
</span><span class="cx">         return false;
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (!decoder.decode(handle.m_graphicsSurfaceToken))
-        return false;
-    if (handle.m_graphicsSurfaceToken.isValid())
-        return true;
-#endif
</del><span class="cx">     if (!decoder.decode(handle.m_bitmapHandle))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="lines">@@ -71,11 +60,6 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCoordinatedSurface&gt; WebCoordinatedSurface::create(const IntSize&amp; size, CoordinatedSurface::Flags flags)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (auto surface = createWithSurface(size, flags))
-        return surface;
-#endif
-
</del><span class="cx">     if (auto bitmap = ShareableBitmap::createShareable(size, (flags &amp; SupportsAlpha) ? ShareableBitmap::SupportsAlpha : ShareableBitmap::NoFlags))
</span><span class="cx">         return create(size, flags, WTFMove(bitmap));
</span><span class="cx"> 
</span><span class="lines">@@ -82,34 +66,8 @@
</span><span class="cx">     return nullptr;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-RefPtr&lt;WebCoordinatedSurface&gt; WebCoordinatedSurface::createWithSurface(const IntSize&amp; size, CoordinatedSurface::Flags flags)
-{
-    GraphicsSurface::Flags surfaceFlags =
-        GraphicsSurface::SupportsSoftwareWrite
-        | GraphicsSurface::SupportsCopyToTexture
-        | GraphicsSurface::SupportsSharing;
-
-    if (flags &amp; SupportsAlpha)
-        surfaceFlags |= GraphicsSurface::SupportsAlpha;
-
-    // This might return null, if the system is unable to provide a new graphics surface.
-    // In that case, this function would return null and allow falling back to ShareableBitmap.
-    RefPtr&lt;GraphicsSurface&gt; surface = GraphicsSurface::create(size, surfaceFlags);
-    if (!surface)
-        return nullptr;
-
-    return adoptRef(new WebCoordinatedSurface(size, flags, WTFMove(surface)));
-}
-#endif
-
</del><span class="cx"> std::unique_ptr&lt;GraphicsContext&gt; WebCoordinatedSurface::createGraphicsContext(const IntRect&amp; rect)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (isBackedByGraphicsSurface())
-        return m_graphicsSurface-&gt;beginPaint(rect, 0 /* Write without retaining pixels*/);
-#endif
-
</del><span class="cx">     ASSERT(m_bitmap);
</span><span class="cx">     auto graphicsContext = m_bitmap-&gt;createGraphicsContext();
</span><span class="cx">     graphicsContext-&gt;clip(rect);
</span><span class="lines">@@ -128,19 +86,6 @@
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-WebCoordinatedSurface::WebCoordinatedSurface(const WebCore::IntSize&amp; size, CoordinatedSurface::Flags flags, RefPtr&lt;WebCore::GraphicsSurface&gt; surface)
-    : CoordinatedSurface(size, flags)
-    , m_graphicsSurface(surface)
-{
-}
-
-Ref&lt;WebCoordinatedSurface&gt; WebCoordinatedSurface::create(const IntSize&amp; size, CoordinatedSurface::Flags flags, RefPtr&lt;GraphicsSurface&gt; surface)
-{
-    return adoptRef(*new WebCoordinatedSurface(size, flags, surface));
-}
-#endif
-
</del><span class="cx"> WebCoordinatedSurface::~WebCoordinatedSurface()
</span><span class="cx"> {
</span><span class="cx"> }
</span><span class="lines">@@ -147,17 +92,6 @@
</span><span class="cx"> 
</span><span class="cx"> RefPtr&lt;WebCoordinatedSurface&gt; WebCoordinatedSurface::create(const Handle&amp; handle)
</span><span class="cx"> {
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (handle.graphicsSurfaceToken().isValid()) {
-        GraphicsSurface::Flags surfaceFlags = 0;
-        if (handle.m_flags &amp; SupportsAlpha)
-            surfaceFlags |= GraphicsSurface::SupportsAlpha;
-        RefPtr&lt;GraphicsSurface&gt; surface = GraphicsSurface::create(handle.m_size, surfaceFlags, handle.m_graphicsSurfaceToken);
-        if (surface)
-            return adoptRef(new WebCoordinatedSurface(handle.m_size, handle.m_flags, WTFMove(surface)));
-    }
-#endif
-
</del><span class="cx">     RefPtr&lt;ShareableBitmap&gt; bitmap = ShareableBitmap::create(handle.m_bitmapHandle);
</span><span class="cx">     if (!bitmap)
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -170,11 +104,6 @@
</span><span class="cx">     handle.m_size = m_size;
</span><span class="cx">     handle.m_flags = m_flags;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    handle.m_graphicsSurfaceToken = m_graphicsSurface ? m_graphicsSurface-&gt;exportToken() : GraphicsSurfaceToken();
-    if (handle.m_graphicsSurfaceToken.isValid())
-        return true;
-#endif
</del><span class="cx">     if (!m_bitmap-&gt;createHandle(handle.m_bitmapHandle))
</span><span class="cx">         return false;
</span><span class="cx"> 
</span><span class="lines">@@ -192,22 +121,6 @@
</span><span class="cx"> {
</span><span class="cx">     RefPtr&lt;BitmapTexture&gt; texture(passTexture);
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-    if (isBackedByGraphicsSurface()) {
-        RefPtr&lt;BitmapTextureGL&gt; textureGL = toBitmapTextureGL(texture.get());
-        if (textureGL) {
-            uint32_t textureID = textureGL-&gt;id();
-            uint32_t textureTarget = textureGL-&gt;textureTarget();
-            m_graphicsSurface-&gt;copyToGLTexture(textureTarget, textureID, target, sourceOffset);
-            return;
-        }
-
-        RefPtr&lt;Image&gt; image = m_graphicsSurface-&gt;createReadOnlyImage(IntRect(sourceOffset, target.size()));
-        texture-&gt;updateContents(image.get(), target, IntPoint::zero(), BitmapTexture::UpdateCanModifyOriginalImageData);
-        return;
-    }
-#endif
-
</del><span class="cx">     ASSERT(m_bitmap);
</span><span class="cx">     RefPtr&lt;Image&gt; image = m_bitmap-&gt;createImage();
</span><span class="cx">     texture-&gt;updateContents(image.get(), target, sourceOffset, BitmapTexture::UpdateCanModifyOriginalImageData);
</span></span></pre></div>
<a id="trunkSourceWebKit2SharedCoordinatedGraphicsWebCoordinatedSurfaceh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.h (212637 => 212638)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.h        2017-02-20 15:47:23 UTC (rev 212637)
+++ trunk/Source/WebKit2/Shared/CoordinatedGraphics/WebCoordinatedSurface.h        2017-02-20 16:52:46 UTC (rev 212638)
</span><span class="lines">@@ -25,10 +25,6 @@
</span><span class="cx"> #include &quot;ShareableBitmap.h&quot;
</span><span class="cx"> #include &lt;WebCore/CoordinatedSurface.h&gt;
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-#include &quot;GraphicsSurface.h&quot;
-#endif
-
</del><span class="cx"> namespace WebCore {
</span><span class="cx"> class BitmapTexture;
</span><span class="cx"> class GraphicsContext;
</span><span class="lines">@@ -46,16 +42,9 @@
</span><span class="cx">         void encode(IPC::Encoder&amp;) const;
</span><span class="cx">         static bool decode(IPC::Decoder&amp;, Handle&amp;);
</span><span class="cx"> 
</span><del>-#if USE(GRAPHICS_SURFACE)
-        WebCore::GraphicsSurfaceToken graphicsSurfaceToken() const { return m_graphicsSurfaceToken; }
-#endif
-
</del><span class="cx">     private:
</span><span class="cx">         friend class WebCoordinatedSurface;
</span><span class="cx">         mutable ShareableBitmap::Handle m_bitmapHandle;
</span><del>-#if USE(GRAPHICS_SURFACE)
-        WebCore::GraphicsSurfaceToken m_graphicsSurfaceToken;
-#endif
</del><span class="cx">         WebCore::IntSize m_size;
</span><span class="cx">         WebCore::CoordinatedSurface::Flags m_flags;
</span><span class="cx">     };
</span><span class="lines">@@ -84,21 +73,8 @@
</span><span class="cx">     static Ref&lt;WebCoordinatedSurface&gt; create(const WebCore::IntSize&amp;, Flags, RefPtr&lt;ShareableBitmap&gt;);
</span><span class="cx"> 
</span><span class="cx">     std::unique_ptr&lt;WebCore::GraphicsContext&gt; createGraphicsContext(const WebCore::IntRect&amp;);
</span><del>-#if USE(GRAPHICS_SURFACE)
-    WebCoordinatedSurface(const WebCore::IntSize&amp;, Flags, RefPtr&lt;WebCore::GraphicsSurface&gt;);
-    // Create a shareable bitmap backed by a graphics surface.
-    static RefPtr&lt;WebCoordinatedSurface&gt; createWithSurface(const WebCore::IntSize&amp;, Flags);
-    // Create a WebCoordinatedSurface referencing an existing GraphicsSurface.
-    static Ref&lt;WebCoordinatedSurface&gt; create(const WebCore::IntSize&amp;, Flags, RefPtr&lt;WebCore::GraphicsSurface&gt;);
</del><span class="cx"> 
</span><del>-    bool isBackedByGraphicsSurface() const { return !!m_graphicsSurface; }
-#endif
-
</del><span class="cx">     RefPtr&lt;ShareableBitmap&gt; m_bitmap;
</span><del>-
-#if USE(GRAPHICS_SURFACE)
-    RefPtr&lt;WebCore::GraphicsSurface&gt; m_graphicsSurface;
-#endif
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebKit
</span></span></pre>
</div>
</div>

</body>
</html>