Index: src/gpu/SkGr.cpp |
diff --git a/src/gpu/SkGr.cpp b/src/gpu/SkGr.cpp |
index 5c0464da20acd72ef60f4569b62fe679c6c619e3..0a45100521232f1ac26dca6b5cac96a1ec6277ff 100644 |
--- a/src/gpu/SkGr.cpp |
+++ b/src/gpu/SkGr.cpp |
@@ -11,6 +11,7 @@ |
#include "SkData.h" |
#include "SkMessageBus.h" |
#include "SkPixelRef.h" |
+#include "SkTextureCompressor.h" |
#include "GrResourceCache.h" |
#include "GrGpu.h" |
#include "effects/GrDitherEffect.h" |
@@ -165,7 +166,7 @@ static GrTexture *load_etc1_texture(GrContext* ctx, |
SkKTXFile ktx(data); |
// Is it actually an ETC1 texture? |
- if (!ktx.isETC1()) { |
+ if (!ktx.isCompressedFormat(SkTextureCompressor::kETC1_Format)) { |
return NULL; |
} |