Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
ImageFrom565Bitmap.cpp File Reference
#include "include/core/SkAlphaType.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorType.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkRefCnt.h"
#include "tests/Test.h"

Go to the source code of this file.

Functions

 DEF_TEST (ImageFrom565Bitmap, r)
 

Function Documentation

◆ DEF_TEST()

DEF_TEST ( ImageFrom565Bitmap  ,
 
)

Definition at line 17 of file ImageFrom565Bitmap.cpp.

17 {
18 SkBitmap bm;
22 REPORTER_ASSERT(r, bm.asImage() != nullptr);
23}
@ kOpaque_SkAlphaType
pixel is opaque
Definition SkAlphaType.h:28
@ kRGB_565_SkColorType
pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
Definition SkColorType.h:22
constexpr SkColor SK_ColorBLACK
Definition SkColor.h:103
#define REPORTER_ASSERT(r, cond,...)
Definition Test.h:286
void allocPixels(const SkImageInfo &info, size_t rowBytes)
Definition SkBitmap.cpp:258
sk_sp< SkImage > asImage() const
Definition SkBitmap.cpp:645
void eraseColor(SkColor4f) const
Definition SkBitmap.cpp:442
static SkImageInfo Make(int width, int height, SkColorType ct, SkAlphaType at)