/third_party/skia/gm/ |
D | flippity.cpp | 41 static const int kImageSize = 128; variable 46 static const int kCellSize = kImageSize+2*kLabelSize; 51 { 0, kImageSize }, // LL 52 { kImageSize, kImageSize }, // LR 54 { kImageSize, 0 }, // UR 119 SkImageInfo::Make(kImageSize, kImageSize, kRGBA_8888_SkColorType, kOpaque_SkAlphaType); in make_reference_image() 155 tmp.preScale(1.0f/kImageSize, 1.0f/kImageSize); in UVMatToGeomMatForImage() 158 tmp.postScale(kImageSize, kImageSize); in UVMatToGeomMatForImage() 184 SkRect::MakeXYWH(kInset, 0, kImageSize-kInset, kImageSize), in drawImageWithMatrixAndLabels() 185 SkRect::MakeXYWH(0, kInset, kImageSize, kImageSize-kInset), in drawImageWithMatrixAndLabels() [all …]
|
D | anisotropic.cpp | 33 return SkISize::Make(2*kImageSize + 3*kSpacer, in onISize() 34 kNumVertImages*kImageSize + (kNumVertImages+1)*kSpacer); in onISize() 43 auto info = SkImageInfo::MakeN32(kImageSize, kImageSize, kOpaque_SkAlphaType); in onOnceBeforeDraw() 54 canvas->translate(kImageSize/2.0f, kImageSize/2.0f); in onOnceBeforeDraw() 59 cos * kImageSize/2, sin * kImageSize/2, p); in onOnceBeforeDraw() 109 inline static constexpr int kImageSize = 256; member in skiagm::AnisotropicGM
|
D | imagesource2.cpp | 55 auto surface(SkSurface::MakeRasterN32Premul(kImageSize, kImageSize)); in onOnceBeforeDraw() 60 for (int x = 0; x < kImageSize; x += 3) { in onOnceBeforeDraw() 62 SkIntToScalar(3), SkIntToScalar(kImageSize)); in onOnceBeforeDraw() 75 SkIntToScalar(kImageSize), in onDraw() 76 SkIntToScalar(kImageSize)); in onDraw() 87 inline static constexpr int kImageSize = 503; member in skiagm::ImageSourceGM
|
D | ycbcrimage.cpp | 42 return SkISize::Make(2*kPad+kImageSize, 2*kPad+kImageSize); in onISize() 53 if (!ycbcrHelper->createBackendTexture(kImageSize, kImageSize)) { in createYCbCrImage() 102 static const int kImageSize = 112; member in skiagm::YCbCrImageGM
|
D | texelsubset.cpp | 75 int w = kTestPad + 2*kN*(kImageSize.width() + 2*kDrawPad + kTestPad); in onISize() 76 int h = kTestPad + 2*kN*(kImageSize.height() + 2*kDrawPad + kTestPad); in onISize() 84 SkASSERT(fBitmap.dimensions() == kImageSize); in onOnceBeforeDraw() 217 inline static constexpr SkISize kImageSize = {128, 88}; member in skiagm::TexelSubset
|
/third_party/skia/bench/ |
D | ImageCycleBench.cpp | 39 auto ii = SkImageInfo::Make(kImageSize.fWidth, kImageSize.fHeight, kRGBA_8888_SkColorType, in onPerCanvasPreDraw() 51 SkRect::MakeLTRB(1, 1, kImageSize.fWidth - 1, kImageSize.fHeight - 1), paint); in onPerCanvasPreDraw() 65 SkScalarFloorToInt(kDeviceSize.fWidth / (kImageSize.fWidth + kPad)); in onDraw() 70 SkScalar imageYOffset = i * rowsPerImage * (kImageSize.fHeight + kPad); in onDraw() 71 SkScalar rowYOffset = (r / imagesPerRow) * (kImageSize.fHeight + kPad); in onDraw() 72 SkScalar x = (r % imagesPerRow) * (kImageSize.fWidth + kPad); in onDraw() 87 inline static constexpr SkISize kImageSize{4, 4}; member in ImageCycle
|
D | AAClipBench.cpp | 93 static const int kImageSize = 400; member in NestedAAClipBench 102 SkIntToScalar(kImageSize), in NestedAAClipBench() 103 SkIntToScalar(kImageSize)); in NestedAAClipBench() 105 fSizes[0].set(SkIntToScalar(kImageSize), SkIntToScalar(kImageSize)); in NestedAAClipBench()
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/ |
D | TextureTest.cpp | 1907 constexpr size_t kImageSize = 256; in TEST_P() local 1908 std::array<GLColor, kImageSize * kImageSize> kMipColors[2]; in TEST_P() 1918 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kImageSize, kImageSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 1928 glTexImage2D(GL_TEXTURE_2D, 1, GL_RGBA, kImageSize, kImageSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 10187 constexpr int kImageSize = 8; // 4 doesn't trip ASAN in TEST_P() local 10188 constexpr int kSmallerImageSize = kImageSize / 2; in TEST_P() 10189 EXPECT_GT(kImageSize, kSmallerImageSize); in TEST_P() 10192 std::array<GLColor, kImageSize * kImageSize> kColor; in TEST_P() 10195 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, kImageSize, kImageSize, 0, GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P()
|