Home | History | Annotate | Download | only in gm

Lines Matching refs:height

40 bool make_ringed_bitmap(GrContext*, TestPixels* result, int width, int height,
44 SkASSERT(0 == width % 2 && 0 == height % 2);
45 SkASSERT(width >= 6 && height >= 6);
48 SkImageInfo info = SkImageInfo::Make(width, height, ct, at);
63 for (int y = 2; y < height / 2; ++y) {
77 for (int y = height / 2; y < height - 2; ++y) {
91 scanline = (PIXEL_TYPE*)result->fBitmap.getAddr(0, height - 2);
98 scanline = (PIXEL_TYPE*)result->fBitmap.getAddr(0, height - 1);
103 result->fRect.set(2, 2, width - 2, height - 2);
109 static bool make_ringed_color_bitmap(GrContext* ctx, TestPixels* result, int width, int height) {
114 return make_ringed_bitmap<SkPMColor>(ctx, result, width, height, kBGRA_8888_SkColorType,
121 static bool make_ringed_alpha_bitmap(GrContext* ctx, TestPixels* result, int width, int height) {
126 return make_ringed_bitmap<uint8_t>(ctx, result, width, height, kAlpha_8_SkColorType,
140 bool make_ringed_color_image(GrContext* ctx, TestPixels* result, int width, int height) {
141 if (make_ringed_color_bitmap(ctx, result, width, height)) {
149 bool make_ringed_alpha_image(GrContext* ctx, TestPixels* result, int width, int height) {
150 if (make_ringed_alpha_bitmap(ctx, result, width, height)) {
165 bool make_oversized_texture_bitmap(GrContext* ctx, TestPixels* result, int width, int height,
169 SkASSERT(0 == width % 2 && 0 == height % 2);
170 SkASSERT(width >= 6 && height >= 6);
179 SkAutoTMalloc<PIXEL_TYPE> pixels(rowBytes*(height + kYPad));
198 for (int y = 2; y < height / 2 + 1; ++y) {
213 for (int y = height / 2 + 1; y < height; ++y) {
228 for (int y = height; y < height + kYPad; ++y) {
238 desc.fHeight = height + kYPad;
246 GrWrapTextureInBitmap(texture, width, height, true, &result->fBitmap);
249 result->fRect.set(2, 2, width, height);
258 int width, int height) {
265 ctx, result, width, height, kSkia8888_GrPixelConfig, kBlue, kRed, kBlack, kWhite, kGreen);
270 int width, int height) {
277 ctx, result, width, height, kAlpha_8_GrPixelConfig, kZero, kOne, k3Q, kHalf, k1Q);
302 bool (*fPixelMaker)(GrContext*, TestPixels* result, int width, int height);
391 fBigTestPixels.fRect.height()/2.f);