move SkImage::ColorType into SkColorType
objective -- move clients over to SkImage
tasks
- use SkImageInfo instead of SkBitmap::Config
- add support for colortables to SkImage
- add drawImage to SkCanvas
- return SkImage from readPixels
This CL works towards the first task
R=robertphillips@google.com
Review URL: https://codereview.chromium.org/54363008
git-svn-id: http://skia.googlecode.com/svn/trunk@12077 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp
index 61c1e2d..1d713e7 100644
--- a/tests/SurfaceTest.cpp
+++ b/tests/SurfaceTest.cpp
@@ -24,10 +24,10 @@
};
static SkSurface* createSurface(SurfaceType surfaceType, GrContext* context) {
- static const SkImage::Info imageSpec = {
+ static const SkImageInfo imageSpec = {
10, // width
10, // height
- SkImage::kPMColor_ColorType,
+ kPMColor_SkColorType,
kPremul_SkAlphaType
};