Flutter Engine
The Flutter Engine
|
#include "include/core/SkAlphaType.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/core/SkTypes.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/GrBackendSurface.h"
#include "include/gpu/GrDirectContext.h"
#include "include/gpu/GrTypes.h"
#include "include/private/base/SkAlign.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrColor.h"
#include "src/gpu/ganesh/GrDataUtils.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrGpu.h"
#include "src/gpu/ganesh/GrGpuBuffer.h"
#include "src/gpu/ganesh/GrImageInfo.h"
#include "src/gpu/ganesh/GrPixmap.h"
#include "src/gpu/ganesh/GrResourceProvider.h"
#include "src/gpu/ganesh/GrTexture.h"
#include "tests/CtsEnforcement.h"
#include "tests/Test.h"
#include "tests/TestUtils.h"
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <functional>
#include <initializer_list>
#include <memory>
Go to the source code of this file.
Functions | |
void | fill_transfer_data (int left, int top, int width, int height, int rowBytes, GrColorType dstType, char *dst) |
void | determine_tolerances (GrColorType a, GrColorType b, float tolerances[4]) |
bool | read_pixels_from_texture (GrTexture *texture, GrColorType colorType, char *dst, float tolerances[4]) |
void | basic_transfer_to_test (skiatest::Reporter *reporter, GrDirectContext *dContext, GrColorType colorType, GrRenderable renderable) |
void | basic_transfer_from_test (skiatest::Reporter *reporter, const sk_gpu_test::ContextInfo &ctxInfo, GrColorType colorType, GrRenderable renderable) |
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (TransferPixelsToTextureTest, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) | |
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS (TransferPixelsFromTextureTest, reporter, ctxInfo, CtsEnforcement::kApiLevel_T) | |
void basic_transfer_from_test | ( | skiatest::Reporter * | reporter, |
const sk_gpu_test::ContextInfo & | ctxInfo, | ||
GrColorType | colorType, | ||
GrRenderable | renderable | ||
) |
Definition at line 310 of file TransferPixelsTest.cpp.
void basic_transfer_to_test | ( | skiatest::Reporter * | reporter, |
GrDirectContext * | dContext, | ||
GrColorType | colorType, | ||
GrRenderable | renderable | ||
) |
Definition at line 127 of file TransferPixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | TransferPixelsFromTextureTest | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 533 of file TransferPixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | TransferPixelsToTextureTest | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 496 of file TransferPixelsTest.cpp.
void determine_tolerances | ( | GrColorType | a, |
GrColorType | b, | ||
float | tolerances[4] | ||
) |
Definition at line 71 of file TransferPixelsTest.cpp.
void fill_transfer_data | ( | int | left, |
int | top, | ||
int | width, | ||
int | height, | ||
int | rowBytes, | ||
GrColorType | dstType, | ||
char * | dst | ||
) |
Definition at line 47 of file TransferPixelsTest.cpp.
bool read_pixels_from_texture | ( | GrTexture * | texture, |
GrColorType | colorType, | ||
char * | dst, | ||
float | tolerances[4] | ||
) |
Definition at line 89 of file TransferPixelsTest.cpp.