Bug 959527 - Implement SharedRGBImage::GetAsSourceSurface. r=nical
authorAli Akhtarzada <ali@comoyo.com>
Fri, 17 Jan 2014 11:22:56 -0500
changeset 164083 899e651efa23c289c73b1eee5d8c7080d4f171ba
parent 164082 3eb0b43bae64aab7a57a58c5f4612652a6d4d535
child 164084 4804658f1be45e5bdf759b25e6d0970a1444ffdb
push id26026
push userphilringnalda@gmail.com
push dateSat, 18 Jan 2014 23:17:27 +0000
treeherdermozilla-central@61fd0f987cf2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs959527
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 959527 - Implement SharedRGBImage::GetAsSourceSurface. r=nical
gfx/layers/ipc/SharedRGBImage.cpp
gfx/layers/ipc/SharedRGBImage.h
--- a/gfx/layers/ipc/SharedRGBImage.cpp
+++ b/gfx/layers/ipc/SharedRGBImage.cpp
@@ -235,11 +235,17 @@ SharedRGBImage::GetTextureClient()
 }
 
 already_AddRefed<gfxASurface>
 SharedRGBImage::DeprecatedGetAsSurface()
 {
   return nullptr;
 }
 
+TemporaryRef<gfx::SourceSurface>
+SharedRGBImage::GetAsSourceSurface()
+{
+  return nullptr;
+}
+
 
 } // namespace layers
 } // namespace mozilla
--- a/gfx/layers/ipc/SharedRGBImage.h
+++ b/gfx/layers/ipc/SharedRGBImage.h
@@ -114,16 +114,18 @@ public:
   virtual uint8_t* GetBuffer() MOZ_OVERRIDE;
 
   gfx::IntSize GetSize();
 
   size_t GetBufferSize();
 
   already_AddRefed<gfxASurface> DeprecatedGetAsSurface();
 
+  TemporaryRef<gfx::SourceSurface> GetAsSourceSurface();
+
   bool Allocate(gfx::IntSize aSize, gfx::SurfaceFormat aFormat);
 private:
   gfx::IntSize mSize;
   RefPtr<ImageClient> mCompositable;
   RefPtr<BufferTextureClient> mTextureClient;
 };
 
 } // namespace layers