| 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/SkWebpEncoder.h" |
| 11 |
#include "include/private/base/SkAssert.h" |
| 12 |
|
| 13 |
class GrDirectContext; |
| 14 |
class SkImage; |
| 15 |
class SkPixmap; |
| 16 |
class SkWStream; |
| 17 |
|
| 18 |
namespace SkWebpEncoder { |
| 19 |
|
| 20 |
bool Encode(SkWStream*, const SkPixmap&, const Options&) { |
| 21 |
SkDEBUGFAIL("Using encoder stub"); |
| 22 |
return false; |
| 23 |
} |
| 24 |
|
| 25 |
sk_sp<SkData> Encode(const SkPixmap&, const Options&) { |
| 26 |
SkDEBUGFAIL("Using encoder stub"); |
| 27 |
return nullptr; |
| 28 |
} |
| 29 |
|
| 30 |
sk_sp<SkData> Encode(GrDirectContext*, const SkImage*, const Options&) { |
| 31 |
SkDEBUGFAIL("Using encoder stub"); |
| 32 |
return nullptr; |
| 33 |
} |
| 34 |
|
| 35 |
} // namespace SkWebpEncoder |