Flutter Engine
The Flutter Engine
Typedefs | Functions
MutableImagesTest.cpp File Reference
#include "tests/Test.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkImage.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/graphite/BackendTexture.h"
#include "include/gpu/graphite/Context.h"
#include "include/gpu/graphite/Image.h"
#include "include/gpu/graphite/Recorder.h"
#include "include/gpu/graphite/Recording.h"
#include "include/gpu/graphite/Surface.h"
#include "src/core/SkAutoPixmapStorage.h"
#include "src/gpu/graphite/Caps.h"
#include "src/gpu/graphite/ContextPriv.h"
#include "src/gpu/graphite/Surface_Graphite.h"
#include "src/gpu/graphite/Texture.h"
#include "src/gpu/graphite/TextureProxy.h"
#include "tests/TestUtils.h"
#include "tools/ToolUtils.h"

Go to the source code of this file.

Typedefs

using Mipmapped = skgpu::Mipmapped
 

Functions

 DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS (MutableImagesTest, reporter, context, CtsEnforcement::kNextRelease)
 

Typedef Documentation

◆ Mipmapped

Definition at line 29 of file MutableImagesTest.cpp.

Function Documentation

◆ DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS()

DEF_GRAPHITE_TEST_FOR_RENDERING_CONTEXTS ( MutableImagesTest  ,
reporter  ,
context  ,
CtsEnforcement::kNextRelease   
)

Definition at line 506 of file MutableImagesTest.cpp.

507 {
508
509 for (bool useTwoRecorders : { false, true }) {
510 for (bool withMips : { false, true }) {
511 // case 1 (AHBs)
512 run_test(reporter, context, useTwoRecorders, withMips,
514
515 // case 2 (Volatile Promise Images)
516 run_test(reporter, context, useTwoRecorders, withMips,
518
519 // case 3 (Surface/Image pair)
520 if (!withMips) {
521 // TODO: allow the mipmapped version when we can automatically regenerate mipmaps
522 run_test(reporter, context, useTwoRecorders, withMips,
524 }
525 }
526 }
527}
static void run_test(GrDirectContext *dContext, skiatest::Reporter *reporter, BulkRectTest test)
reporter
Definition: FontMgrTest.cpp:39
SK_API sk_sp< SkDocument > Make(SkWStream *dst, const SkSerialProcs *=nullptr, std::function< void(const SkPicture *)> onEndPage=nullptr)