flutter_flutter/lib/ui/painting/image_encoding.h
Todd Volkert 4eaf2c2fea
Return raw (unencoded) bytes in Image.toByteData() (#5008)
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
2018-04-16 12:39:46 -07:00

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_