Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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"
13
14namespace flutter {
15
16// A handle to an SkCodec object.
17//
18// Doesn't mirror SkCodec's API but provides a simple sequential access API.
19class 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_
void dispose()
Definition codec.cc:17
virtual int repetitionCount() const =0
virtual int frameCount() const =0
virtual Dart_Handle getNextFrame(Dart_Handle callback_handle)=0
struct _Dart_Handle * Dart_Handle
Definition dart_api.h:258