Flutter Engine
The Flutter Engine
ImageFrom565Bitmap.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
12#include "include/core/SkImage.h" // IWYU pragma: keep
15#include "tests/Test.h"
16
17DEF_TEST(ImageFrom565Bitmap, r) {
18 SkBitmap bm;
22 REPORTER_ASSERT(r, bm.asImage() != nullptr);
23}
DEF_TEST(ImageFrom565Bitmap, r)
@ 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)