Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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,
513 UpdateBackendTextureMutator::Make);
514
515 // case 2 (Volatile Promise Images)
516 run_test(reporter, context, useTwoRecorders, withMips,
517 VolatilePromiseImageMutator::Make);
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,
523 SurfaceMutator::Make);
524 }
525 }
526 }
527}
reporter
void run_test(skiatest::Reporter *reporter, Context *context, SkISize surfaceSize, SkISize recordingSize, SkISize replayOffset, DrawCallback draw, const std::vector< Expectation > &expectations)