Bug 1238755 - Use Skia for BasicCompositor composition on Mac. r=mattwoodrow
authorMarkus Stange <mstange@themasta.com>
Mon, 11 Jan 2016 20:22:33 +0100
changeset 279575 ff537450e059e1a2055b5f93c3c5c18284fa8838
parent 279574 305fa46416865740ef843e1dc9df4dbb6082bac9
child 279576 a0771496e9587bef97993f0c2e00e91449dad04b
push id70138
push usermstange@themasta.com
push dateTue, 12 Jan 2016 17:29:53 +0000
treeherdermozilla-inbound@ff537450e059 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs1238755
milestone46.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 1238755 - Use Skia for BasicCompositor composition on Mac. r=mattwoodrow
widget/cocoa/nsChildView.mm
--- a/widget/cocoa/nsChildView.mm
+++ b/widget/cocoa/nsChildView.mm
@@ -2938,17 +2938,17 @@ RectTextureImage::BeginUpdate(const Layo
   if (!mUpdateDrawTarget || mBufferSize != neededBufferSize) {
     gfx::IntSize size(neededBufferSize.width, neededBufferSize.height);
     mUpdateDrawTarget = nullptr;
     mUpdateDrawTargetData = nullptr;
     gfx::SurfaceFormat format = gfx::SurfaceFormat::B8G8R8A8;
     int32_t stride = size.width * gfx::BytesPerPixel(format);
     mUpdateDrawTargetData = MakeUnique<unsigned char[]>(stride * size.height);
     mUpdateDrawTarget =
-      gfx::Factory::CreateDrawTargetForData(gfx::BackendType::COREGRAPHICS,
+      gfx::Factory::CreateDrawTargetForData(gfx::BackendType::SKIA,
                                             mUpdateDrawTargetData.get(), size,
                                             stride, format);
     mBufferSize = neededBufferSize;
   }
 
   mInUpdate = true;
 
   RefPtr<gfx::DrawTarget> drawTarget = mUpdateDrawTarget;