ThreadSafeCoordinatedSurface: remove the unused private create() static method
authorzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2016 07:36:02 +0000 (07:36 +0000)
committerzandobersek@gmail.com <zandobersek@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2016 07:36:02 +0000 (07:36 +0000)
https://bugs.webkit.org/show_bug.cgi?id=154792

Reviewed by Carlos Garcia Campos.

Remove the static ThreadSafeCoordinatedSurface::create() method that accepted
a std::unique_ptr<ImageBuffer> object as its third parameter. This was not used
anywhere.

* Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp:
(WebKit::ThreadSafeCoordinatedSurface::create): Deleted.
* Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.h:

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

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp
Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.h

index d54e608..646e9ea 100644 (file)
@@ -1,3 +1,18 @@
+2016-02-29  Zan Dobersek  <zdobersek@igalia.com>
+
+        ThreadSafeCoordinatedSurface: remove the unused private create() static method
+        https://bugs.webkit.org/show_bug.cgi?id=154792
+
+        Reviewed by Carlos Garcia Campos.
+
+        Remove the static ThreadSafeCoordinatedSurface::create() method that accepted
+        a std::unique_ptr<ImageBuffer> object as its third parameter. This was not used
+        anywhere.
+
+        * Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.cpp:
+        (WebKit::ThreadSafeCoordinatedSurface::create): Deleted.
+        * Shared/CoordinatedGraphics/threadedcompositor/ThreadSafeCoordinatedSurface.h:
+
 2016-02-29  Simon Fraser  <simon.fraser@apple.com>
 
         Remove the experimental feature of antialiased font dilation
index 594e108..ae4ec55 100644 (file)
@@ -42,11 +42,6 @@ Ref<ThreadSafeCoordinatedSurface> ThreadSafeCoordinatedSurface::create(const Int
     return adoptRef(*new ThreadSafeCoordinatedSurface(size, flags, ImageBuffer::create(size, Unaccelerated)));
 }
 
-Ref<ThreadSafeCoordinatedSurface> ThreadSafeCoordinatedSurface::create(const IntSize& size, CoordinatedSurface::Flags flags, std::unique_ptr<ImageBuffer> buffer)
-{
-    return adoptRef(*new ThreadSafeCoordinatedSurface(size, flags, WTFMove(buffer)));
-}
-
 ThreadSafeCoordinatedSurface::ThreadSafeCoordinatedSurface(const IntSize& size, CoordinatedSurface::Flags flags, std::unique_ptr<ImageBuffer> buffer)
     : CoordinatedSurface(size, flags)
     , m_imageBuffer(WTFMove(buffer))
index aa154bd..247251f 100644 (file)
@@ -48,9 +48,6 @@ private:
     WebCore::GraphicsContext& beginPaint(const WebCore::IntRect&);
     void endPaint();
 
-    // Create a ThreadSafeCoordinatedSurface referencing an exisiting ImageBuffer
-    static Ref<ThreadSafeCoordinatedSurface> create(const WebCore::IntSize&, WebCore::CoordinatedSurface::Flags, std::unique_ptr<WebCore::ImageBuffer>);
-
     std::unique_ptr<WebCore::ImageBuffer> m_imageBuffer;
 };