diff options
author | weili <weili@chromium.org> | 2016-07-21 23:26:47 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-07-21 23:26:47 -0700 |
commit | 8f19e4bc617d19e871137be55a34992e421585ad (patch) | |
tree | b4519d00db1e5cdd45cf178bfdaa4c18e247494f /core/fxge/skia | |
parent | c38cd6eb274429a5755e04d2e22a606375851717 (diff) | |
download | pdfium-8f19e4bc617d19e871137be55a34992e421585ad.tar.xz |
Fix skia build broken by commit c38cd6
Add back one function which is only used by Skia code. And make a couple small
fixes.
Review-Url: https://codereview.chromium.org/2167383002
Diffstat (limited to 'core/fxge/skia')
-rw-r--r-- | core/fxge/skia/fx_skia_device.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fxge/skia/fx_skia_device.cpp b/core/fxge/skia/fx_skia_device.cpp index 5f874e5ffb..3c7ce7ee98 100644 --- a/core/fxge/skia/fx_skia_device.cpp +++ b/core/fxge/skia/fx_skia_device.cpp @@ -1462,7 +1462,8 @@ CFX_FxgeDevice::CFX_FxgeDevice() { } SkPictureRecorder* CFX_FxgeDevice::CreateRecorder(int size_x, int size_y) { - SetDeviceDriver(WrapUnique(new CFX_SkiaDeviceDriver(size_x, size_y))); + CFX_SkiaDeviceDriver* skDriver = new CFX_SkiaDeviceDriver(size_x, size_y); + SetDeviceDriver(WrapUnique(skDriver)); return skDriver->GetRecorder(); } @@ -1481,7 +1482,7 @@ bool CFX_FxgeDevice::Attach(CFX_DIBitmap* pBitmap, bool CFX_FxgeDevice::AttachRecorder(SkPictureRecorder* recorder) { if (!recorder) return false; - SetDeviceDriver(new CFX_SkiaDeviceDriver(recorder)); + SetDeviceDriver(WrapUnique(new CFX_SkiaDeviceDriver(recorder))); return true; } @@ -1496,9 +1497,8 @@ bool CFX_FxgeDevice::Create(int width, return false; } SetBitmap(pBitmap); - CFX_SkiaDeviceDriver* pDriver = - new CFX_SkiaDeviceDriver(pBitmap, FALSE, pOriDevice, FALSE); - SetDeviceDriver(pDriver); + SetDeviceDriver( + WrapUnique(new CFX_SkiaDeviceDriver(pBitmap, FALSE, pOriDevice, FALSE))); return true; } |