aboutsummaryrefslogtreecommitdiffhomepage
path: root/dm
diff options
context:
space:
mode:
Diffstat (limited to 'dm')
-rw-r--r--dm/DMGpuGMTask.cpp2
-rw-r--r--dm/DMWriteTask.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/dm/DMGpuGMTask.cpp b/dm/DMGpuGMTask.cpp
index a7b1d7b61f..c72f675660 100644
--- a/dm/DMGpuGMTask.cpp
+++ b/dm/DMGpuGMTask.cpp
@@ -37,7 +37,7 @@ void GpuGMTask::draw(GrContextFactory* grFactory) {
canvas->flush();
SkBitmap bitmap;
- bitmap.setInfo(info);
+ bitmap.setConfig(info);
canvas->readPixels(&bitmap, 0, 0);
this->spawnChild(SkNEW_ARGS(ExpectationsTask, (*this, fExpectations, bitmap)));
diff --git a/dm/DMWriteTask.cpp b/dm/DMWriteTask.cpp
index 98ea929288..7c9bb628a7 100644
--- a/dm/DMWriteTask.cpp
+++ b/dm/DMWriteTask.cpp
@@ -97,7 +97,7 @@ struct PngAndRaw {
info, rowBytes, NULL/*ctable*/, subset));
SkASSERT(pixels);
- bitmap->setInfo(info, rowBytes);
+ bitmap->setConfig(info, rowBytes);
bitmap->setPixelRef(pixels);
return true;
}