Definition at line 330 of file exoticformats.cpp.
◆ ExoticFormatsGM()
skiagm::ExoticFormatsGM::ExoticFormatsGM |
( |
| ) |
|
|
inline |
◆ drawImage()
Definition at line 379 of file exoticformats.cpp.
379 {
381 return;
382 }
383
384 bool isCompressed = false;
390 }
391
393
394 if (!isCompressed) {
395
400 paint.setStrokeWidth(2.0f);
402 }
403 }
constexpr SkColor SK_ColorRED
static SkImage_Base * as_IB(SkImage *image)
const GrCaps * caps() const
bool isFormatCompressed(const GrBackendFormat &format) const
GrImageContextPriv priv()
const GrBackendFormat & backendFormat() const
void drawRect(const SkRect &rect, const SkPaint &paint)
virtual GrRecordingContext * recordingContext() const
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
virtual GrImageContext * context() const
virtual bool isTextureBacked() const =0
@ kStroke_Style
set to stroke geometry
GrTextureProxy * GetTextureImageProxy(SkImage *image, GrRecordingContext *rContext)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
◆ getISize()
SkISize skiagm::ExoticFormatsGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 339 of file exoticformats.cpp.
339 {
340 return SkISize::Make(2*kImgWidthHeight + 3 * kPad, kImgWidthHeight + 2 * kPad);
341 }
static constexpr SkISize Make(int32_t w, int32_t h)
◆ getName()
SkString skiagm::ExoticFormatsGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ loadImages()
Definition at line 343 of file exoticformats.cpp.
343 {
344 SkASSERT(!fETC1Image && !fBC1Image);
345
346 {
349 if (data) {
350 SkASSERT(
info.fDim.equals(kImgWidthHeight, kImgWidthHeight));
353
355 } else {
356 SkDebugf(
"failed to load flower-etc1.ktx\n");
357 return false;
358 }
359 }
360
361 {
364 if (data) {
365 SkASSERT(
info.fDim.equals(kImgWidthHeight, kImgWidthHeight));
368
370 } else {
371 SkDebugf(
"failed to load flower-bc1.dds\n");
372 return false;
373 }
374 }
375
376 return true;
377 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
SkString GetResourcePath(const char *resource)
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static sk_sp< SkImage > data_to_img(GrDirectContext *direct, sk_sp< SkData > data, SkTextureCompressionType compression)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
◆ onDraw()
void skiagm::ExoticFormatsGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
◆ onGpuSetup()
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 405 of file exoticformats.cpp.
405 {
407 if (dContext && dContext->abandoned()) {
408
409
411 }
412
414 *errorMsg = "Failed to create images.";
416 }
417
419 }
static GrDirectContext * GrAsDirectContext(GrContext_Base *base)
◆ onGpuTeardown()
void skiagm::ExoticFormatsGM::onGpuTeardown |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: