// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_ #define UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_ #include <utility> #include "ui/gfx/geometry/size.h" #include "ui/gfx/gfx_export.h" #include "ui/gfx/image/image_skia.h" #include "ui/gfx/image/image_skia_source.h" namespace gfx { class Canvas; class ImageSkiaRep; class Insets; // CanvasImageSource is useful if you need to generate an image for a scale // factor using Canvas. It creates a new Canvas with target scale factor and // generates ImageSkiaRep when drawing is completed. class GFX_EXPORT CanvasImageSource : public ImageSkiaSource { … }; } // namespace gfx #endif // UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_