summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mike Reed <reed@google.com> 2018-10-15 12:30:53 -0400
committer Mike Reed <reed@google.com> 2018-10-15 12:30:57 -0400
commitd0a615624c51d39a1c30455a8b102c1e15665b85 (patch)
tree97d0cacb6baea861a606f9229a423e25d5525c32
parenta68e3ccd83ef68645d64676df7c58a98f43dea9d (diff)
delete tests for deprecated isABitmap
This check is also no longer needed - no limit on colorshaders Test: make Change-Id: I088ec0eae3fb792b36eaec37e5b3f29bbbf573f9
-rw-r--r--libs/hwui/tests/unit/SkiaBehaviorTests.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/libs/hwui/tests/unit/SkiaBehaviorTests.cpp b/libs/hwui/tests/unit/SkiaBehaviorTests.cpp
index bc742b0c5a63..df5f45618070 100644
--- a/libs/hwui/tests/unit/SkiaBehaviorTests.cpp
+++ b/libs/hwui/tests/unit/SkiaBehaviorTests.cpp
@@ -35,23 +35,6 @@ SkBitmap createSkBitmap(int width, int height) {
return bitmap;
}
-/**
- * 1x1 bitmaps must not be optimized into solid color shaders, since HWUI can't
- * compose/render color shaders
- */
-TEST(SkiaBehavior, CreateBitmapShader1x1) {
- SkBitmap origBitmap = createSkBitmap(1, 1);
- sk_sp<SkImage> image = SkMakeImageFromRasterBitmap(origBitmap, kNever_SkCopyPixelsMode);
- sk_sp<SkShader> s =
- image->makeShader(SkShader::kClamp_TileMode, SkShader::kRepeat_TileMode, nullptr);
-
- SkBitmap bitmap;
- SkShader::TileMode xy[2];
- ASSERT_TRUE(s->isABitmap(&bitmap, nullptr, xy))
- << "1x1 bitmap shader must query as bitmap shader";
- EXPECT_EQ(origBitmap.pixelRef(), bitmap.pixelRef());
-}
-
TEST(SkiaBehavior, genIds) {
SkBitmap bitmap = createSkBitmap(100, 100);
uint32_t genId = bitmap.getGenerationID();