Flutter Engine
The Flutter Engine
third_party
skia
src
encode
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
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
20
bool
Encode
(
SkWStream
*,
const
SkPixmap
&,
const
Options
&) {
21
SkDEBUGFAIL
(
"Using encoder stub"
);
22
return
false
;
23
}
24
25
sk_sp<SkData>
Encode
(
GrDirectContext
*,
const
SkImage
*,
const
Options
&) {
26
SkDEBUGFAIL
(
"Using encoder stub"
);
27
return
nullptr
;
28
}
29
30
}
// namespace SkJpegEncoder
SkAssert.h
SkDEBUGFAIL
#define SkDEBUGFAIL(message)
Definition:
SkAssert.h:118
SkData.h
SkJpegEncoder.h
SkRefCnt.h
GrDirectContext
Definition:
GrDirectContext.h:60
SkImage
Definition:
SkImage.h:272
SkPixmap
Definition:
SkPixmap.h:40
SkWStream
Definition:
SkStream.h:218
sk_sp< SkData >
SkJpegEncoder
Definition:
SkJpegEncoder.h:26
SkJpegEncoder::Encode
SK_API bool Encode(SkWStream *dst, const SkPixmap &src, const Options &options)
Definition:
SkJpegEncoder_none.cpp:20
SkJpegEncoder::Options
Definition:
SkJpegEncoder.h:50
Generated on Sun Jun 23 2024 21:56:16 for Flutter Engine by
1.9.4