Lines Matching refs:special

47     sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(bmDev.get(), bm);
48 SkASSERT(!special->isTextureBacked());
49 SkASSERT(kWidth == special->width());
50 SkASSERT(kHeight == special->height());
51 SkASSERT(bm.getGenerationID() == special->uniqueID());
52 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
56 special = DeviceTestingAccess::MakeSpecial(bmDev.get(), image.get());
57 SkASSERT(!special->isTextureBacked());
58 SkASSERT(kWidth == special->width());
59 SkASSERT(kHeight == special->height());
60 SkASSERT(bm.getGenerationID() == special->uniqueID());
61 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset());
64 special = DeviceTestingAccess::SnapSpecial(bmDev.get());
65 SkASSERT(!special->isTextureBacked());
66 SkASSERT(2*kWidth == special->width());
67 SkASSERT(2*kHeight == special->height());
68 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset());
91 sk_sp<SkSpecialImage> special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), bm); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
92 SkASSERT(special->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 SkASSERT(kWidth == special->width()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
94 SkASSERT(kHeight == special->height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
95 SkASSERT(bm.getGenerationID() == special->uniqueID()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
96 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
100 special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), image.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 SkASSERT(special->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
102 SkASSERT(kWidth == special->width()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
103 SkASSERT(kHeight == special->height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
105 SkASSERT(image->uniqueID() != special->uniqueID()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 special = DeviceTestingAccess::MakeSpecial(gpuDev.get(), image.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 SkASSERT(special->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
113 SkASSERT(kWidth == special->width()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
114 SkASSERT(kHeight == special->height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 SkASSERT(image->uniqueID() == special->uniqueID()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
116 SkASSERT(SkIRect::MakeWH(kWidth, kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 special = DeviceTestingAccess::SnapSpecial(gpuDev.get()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
120 SkASSERT(special->isTextureBacked()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
121 SkASSERT(2*kWidth == special->width()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
122 SkASSERT(2*kHeight == special->height()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 SkASSERT(SkIRect::MakeWH(2*kWidth, 2*kHeight) == special->subset()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()