mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Building image encoding into the engine bloated the binary size. This change will return raw bytes, and callers who use this functionality can take on the dependency on image encoding in their apps (via a Dart package or a platform plugin). Fixes https://github.com/flutter/flutter/issues/16537
20 lines
537 B
C++
20 lines
537 B
C++
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_
|
|
#define FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_
|
|
|
|
#include "lib/tonic/dart_library_natives.h"
|
|
|
|
namespace blink {
|
|
|
|
class CanvasImage;
|
|
|
|
Dart_Handle GetImageBytes(CanvasImage* canvas_image,
|
|
Dart_Handle callback_handle);
|
|
|
|
} // namespace blink
|
|
|
|
#endif // FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_H_
|