// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "skia/ext/platform_canvas.h" #include "base/check.h" #include "base/memory/ptr_util.h" #include "build/build_config.h" #include "third_party/skia/include/core/SkTypes.h" namespace skia { SkBitmap ReadPixels(SkCanvas* canvas) { … } bool GetWritablePixels(SkCanvas* canvas, SkPixmap* result) { … } #if !defined(WIN32) std::unique_ptr<SkCanvas> CreatePlatformCanvasWithPixels( int width, int height, bool is_opaque, uint8_t* data, OnFailureType failureType) { … } #endif } // namespace skia