xref: /aosp_15_r20/external/skia/src/encode/SkJpegEncoder_none.cpp (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 
8 #include "include/core/SkData.h"
9 #include "include/core/SkRefCnt.h"
10 #include "include/encode/SkJpegEncoder.h"
11 #include "include/private/base/SkAssert.h"
12 
13 class GrDirectContext;
14 class SkImage;
15 class SkPixmap;
16 class SkWStream;
17 
18 namespace SkJpegEncoder {
19 
Encode(SkWStream *,const SkPixmap &,const Options &)20 bool Encode(SkWStream*, const SkPixmap&, const Options&) {
21     SkDEBUGFAIL("Using encoder stub");
22     return false;
23 }
24 
Encode(GrDirectContext *,const SkImage *,const Options &)25 sk_sp<SkData> Encode(GrDirectContext*, const SkImage*, const Options&) {
26     SkDEBUGFAIL("Using encoder stub");
27     return nullptr;
28 }
29 
30 }  // namespace SkJpegEncoder
31