зеркало из https://github.com/mozilla/moz-skia.git
Fixed memory leak in deferred_canvas_record bench
http://codereview.appspot.com/6499123/ git-svn-id: http://skia.googlecode.com/svn/trunk@5564 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
433ce5e686
Коммит
bf3ef28f3b
|
@ -26,8 +26,12 @@ protected:
|
|||
}
|
||||
|
||||
virtual void onDraw(SkCanvas* canvas) {
|
||||
SkDeferredCanvas deferredCanvas(canvas->getDevice()->createCompatibleDevice(
|
||||
SkBitmap::kARGB_8888_Config, CANVAS_WIDTH, CANVAS_HEIGHT, false));
|
||||
SkDevice *device = canvas->getDevice()->createCompatibleDevice(
|
||||
SkBitmap::kARGB_8888_Config, CANVAS_WIDTH, CANVAS_HEIGHT, false);
|
||||
|
||||
SkDeferredCanvas deferredCanvas(device);
|
||||
|
||||
device->unref();
|
||||
|
||||
initDeferredCanvas(deferredCanvas);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче