aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkImageRef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/images/SkImageRef.cpp')
-rw-r--r--src/images/SkImageRef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/images/SkImageRef.cpp b/src/images/SkImageRef.cpp
index 458aa2aa5a..2cb8ec82ba 100644
--- a/src/images/SkImageRef.cpp
+++ b/src/images/SkImageRef.cpp
@@ -32,7 +32,7 @@ SkImageRef::SkImageRef(const SkImageInfo& info, SkStreamRewindable* stream,
// This sets the colortype/alphatype to exactly match our info, so that this
// can get communicated down to the codec.
- fBitmap.setConfig(info);
+ fBitmap.setInfo(info);
#ifdef DUMP_IMAGEREF_LIFECYCLE
SkDebugf("add ImageRef %p [%d] data=%d\n",
@@ -190,7 +190,7 @@ SkImageRef::SkImageRef(SkReadBuffer& buffer, SkBaseMutex* mutex)
// This sets the colortype/alphatype to exactly match our info, so that this
// can get communicated down to the codec.
- fBitmap.setConfig(this->info());
+ fBitmap.setInfo(this->info());
}
void SkImageRef::flatten(SkWriteBuffer& buffer) const {