diff options
Diffstat (limited to 'samplecode/SampleApp.cpp')
| -rw-r--r-- | samplecode/SampleApp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 455559c745..f0c4e59528 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -3,6 +3,7 @@ #include "SkCanvas.h" #include "SkDevice.h" #include "SkGpuCanvas.h" +#include "SkGpuDevice.h" #include "SkGraphics.h" #include "SkImageEncoder.h" #include "SkPaint.h" @@ -699,9 +700,7 @@ SkCanvas* SampleWindow::beforeChildren(SkCanvas* canvas) { fGpuCanvas = new SkGpuCanvas(fGrContext, renderTarget); renderTarget->unref(); - device = fGpuCanvas->createDevice(SkBitmap::kARGB_8888_Config, - bitmap.width(), bitmap.height(), - false, false); + device = new SkGpuDevice(fGrContext, renderTarget); fGpuCanvas->setDevice(device)->unref(); fGpuCanvas->concat(canvas->getTotalMatrix()); |
