Flutter Engine
The Flutter Engine
lib
ui
painting
codec.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_LIB_UI_PAINTING_CODEC_H_
6
#define FLUTTER_LIB_UI_PAINTING_CODEC_H_
7
8
#include "flutter/lib/ui/dart_wrapper.h"
9
#include "flutter/lib/ui/ui_dart_state.h"
10
#include "
third_party/skia/include/codec/SkCodec.h
"
11
#include "
third_party/skia/include/core/SkBitmap.h
"
12
#include "
third_party/skia/include/core/SkImage.h
"
13
14
namespace
flutter
{
15
16
// A handle to an SkCodec object.
17
//
18
// Doesn't mirror SkCodec's API but provides a simple sequential access API.
19
class
Codec
:
public
RefCountedDartWrappable
<Codec> {
20
DEFINE_WRAPPERTYPEINFO();
21
22
public
:
23
virtual
int
frameCount
()
const
= 0;
24
25
virtual
int
repetitionCount
()
const
= 0;
26
27
virtual
Dart_Handle
getNextFrame
(
Dart_Handle
callback_handle) = 0;
28
29
void
dispose
();
30
};
31
32
}
// namespace flutter
33
34
#endif
// FLUTTER_LIB_UI_PAINTING_CODEC_H_
SkBitmap.h
SkCodec.h
SkImage.h
flutter::Codec
Definition:
codec.h:19
flutter::Codec::dispose
void dispose()
Definition:
codec.cc:17
flutter::Codec::repetitionCount
virtual int repetitionCount() const =0
flutter::Codec::frameCount
virtual int frameCount() const =0
flutter::Codec::getNextFrame
virtual Dart_Handle getNextFrame(Dart_Handle callback_handle)=0
flutter::RefCountedDartWrappable
Definition:
dart_wrapper.h:15
Dart_Handle
struct _Dart_Handle * Dart_Handle
Definition:
dart_api.h:258
flutter
Definition:
asset_manager.cc:10
Generated on Sun Jun 23 2024 21:55:05 for Flutter Engine by
1.9.4