Flutter Engine
The Flutter Engine
|
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorPriv.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkMallocPixelRef.h"
#include "include/core/SkPixelRef.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkSize.h"
#include "include/core/SkSurface.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/gpu/ganesh/SkSurfaceGanesh.h"
#include "include/private/SkColorData.h"
#include "include/private/base/SkCPUTypes.h"
#include "include/private/base/SkMalloc.h"
#include "include/private/base/SkSafe32.h"
#include "include/private/base/SkTo.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/base/SkMathPriv.h"
#include "src/core/SkImageInfoPriv.h"
#include "src/gpu/SkBackingFit.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrProxyProvider.h"
#include "src/gpu/ganesh/GrTextureProxy.h"
#include "tests/CtsEnforcement.h"
#include "tests/Test.h"
#include "tools/gpu/BackendSurfaceFactory.h"
#include <array>
#include <cstdint>
#include <cstring>
#include <initializer_list>
#include <memory>
#include <utility>
Go to the source code of this file.
Variables | |
static const int | DEV_W = 100 |
static const int | DEV_H = 100 |
static const SkIRect | DEV_RECT = SkIRect::MakeWH(DEV_W, DEV_H) |
static const U8CPU | DEV_PAD = 0xee |
|
static |
Definition at line 315 of file WritePixelsTest.cpp.
|
static |
Definition at line 338 of file WritePixelsTest.cpp.
Definition at line 194 of file WritePixelsTest.cpp.
|
static |
Definition at line 238 of file WritePixelsTest.cpp.
|
static |
Definition at line 175 of file WritePixelsTest.cpp.
|
static |
Definition at line 542 of file WritePixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | WritePixels_Gpu | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 477 of file WritePixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | WritePixelsMSAA_Gpu | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 484 of file WritePixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | WritePixelsNonTexture_Gpu | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 528 of file WritePixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | WritePixelsNonTextureMSAA_Gpu | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 535 of file WritePixelsTest.cpp.
DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS | ( | WritePixelsPendingIO | , |
reporter | , | ||
ctxInfo | , | ||
CtsEnforcement::kApiLevel_T | |||
) |
Definition at line 568 of file WritePixelsTest.cpp.
DEF_TEST | ( | WritePixels | , |
reporter | |||
) |
Definition at line 449 of file WritePixelsTest.cpp.
DEF_TEST | ( | WritePixels_InvalidRowBytes | , |
reporter | |||
) |
Definition at line 643 of file WritePixelsTest.cpp.
DEF_TEST | ( | WritePixelsSurfaceGenID | , |
reporter | |||
) |
Definition at line 344 of file WritePixelsTest.cpp.
|
static |
|
static |
Definition at line 447 of file WritePixelsTest.cpp.
|
static |
Definition at line 117 of file WritePixelsTest.cpp.
Definition at line 63 of file WritePixelsTest.cpp.
|
static |
|
static |
Lucky for us, alpha is always in the same spot (SK_A32_SHIFT), for both RGBA and BGRA. Thus this routine doesn't need to know the exact colortype
Definition at line 163 of file WritePixelsTest.cpp.
|
static |
Definition at line 324 of file WritePixelsTest.cpp.
|
static |
Definition at line 464 of file WritePixelsTest.cpp.
|
static |
Definition at line 353 of file WritePixelsTest.cpp.
|
static |
Definition at line 511 of file WritePixelsTest.cpp.
Definition at line 551 of file WritePixelsTest.cpp.
bool write_should_succeed | ( | const SkImageInfo & | dstInfo, |
const SkImageInfo & | srcInfo, | ||
bool | isGPU | ||
) |
Definition at line 214 of file WritePixelsTest.cpp.
|
static |
Definition at line 59 of file WritePixelsTest.cpp.
|
static |
Definition at line 61 of file WritePixelsTest.cpp.
|
static |
Definition at line 60 of file WritePixelsTest.cpp.
|
static |
Definition at line 59 of file WritePixelsTest.cpp.