Flutter Engine
The Flutter Engine
SkJpegEncoder_none.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2023 Google LLC
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
13class GrDirectContext;
14class SkImage;
15class SkPixmap;
16class SkWStream;
17
18namespace SkJpegEncoder {
19
20bool Encode(SkWStream*, const SkPixmap&, const Options&) {
21 SkDEBUGFAIL("Using encoder stub");
22 return false;
23}
24
26 SkDEBUGFAIL("Using encoder stub");
27 return nullptr;
28}
29
30} // namespace SkJpegEncoder
#define SkDEBUGFAIL(message)
Definition: SkAssert.h:118
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)