Skip to content

Commit

Permalink
Bug 1340627 - part 6 - fix layers for Skia m59. r=mchang
Browse files Browse the repository at this point in the history
MozReview-Commit-ID: 6pAV6FKDFQ4
  • Loading branch information
lsalzman committed May 10, 2017
1 parent 66409db commit 69f5c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gfx/layers/composite/PaintCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ PaintCounter::PaintCounter()
mSurface = Factory::CreateDataSourceSurface(mRect.Size(), mFormat);
mStride = mSurface->Stride();

mCanvas.reset(
SkCanvas::NewRasterDirect(MakeSkiaImageInfo(mRect.Size(), mFormat),
mSurface->GetData(), mStride));
mCanvas =
SkCanvas::MakeRasterDirect(MakeSkiaImageInfo(mRect.Size(), mFormat),
mSurface->GetData(), mStride);
mCanvas->clear(SK_ColorWHITE);
}

Expand Down
2 changes: 1 addition & 1 deletion gfx/layers/composite/PaintCounter.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PaintCounter {
virtual ~PaintCounter();

SurfaceFormat mFormat;
sk_sp<SkCanvas> mCanvas;
std::unique_ptr<SkCanvas> mCanvas;
IntSize mSize;
int mStride;

Expand Down

0 comments on commit 69f5c51

Please sign in to comment.