Bug 1167235 - Part 6: Fix up HasInternalBuffer return value on TextureHostDirectUpload. r=nical
authorBas Schouten <bschouten@mozilla.com>
Fri, 19 Jun 2015 01:07:22 +0200
changeset 249689 eccde665c72a61fbc42ad91cf2b3f7fbb4e2d9e2
parent 249688 bd11811fd67a43f8e97be5fdd999f54934590dd7
child 249690 03f47dc4ada54ae676dfc058f42d7a1990e2d558
push id28936
push userryanvm@gmail.com
push dateFri, 19 Jun 2015 20:34:42 +0000
treeherdermozilla-central@c319f262ce3e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1167235
milestone41.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 1167235 - Part 6: Fix up HasInternalBuffer return value on TextureHostDirectUpload. r=nical
gfx/layers/TextureDIB.h
--- a/gfx/layers/TextureDIB.h
+++ b/gfx/layers/TextureDIB.h
@@ -134,16 +134,18 @@ public:
   virtual gfx::SurfaceFormat GetFormat() const override { return mFormat; }
 
   virtual gfx::IntSize GetSize() const override { return mSize; }
 
   virtual bool Lock() override;
 
   virtual void Unlock() override;
 
+  virtual bool HasInternalBuffer() const { return true; }
+
   virtual bool BindTextureSource(CompositableTextureSourceRef& aTexture) override;
 
 protected:
   RefPtr<DataTextureSource> mTextureSource;
   RefPtr<Compositor> mCompositor;
   gfx::SurfaceFormat mFormat;
   gfx::IntSize mSize;
   bool mIsLocked;