Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Unified Diff: ui/gfx/image/canvas_image_source.h

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/image/OWNERS ('k') | ui/gfx/image/canvas_image_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/canvas_image_source.h
diff --git a/ui/gfx/image/canvas_image_source.h b/ui/gfx/image/canvas_image_source.h
deleted file mode 100644
index 8c1a87d4bd06dc63e25d9df4d65df253f3b7ba6a..0000000000000000000000000000000000000000
--- a/ui/gfx/image/canvas_image_source.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2012 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 UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_
-#define UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/gfx/gfx_export.h"
-#include "ui/gfx/image/image_skia_source.h"
-#include "ui/gfx/size.h"
-
-namespace gfx {
-class Canvas;
-class ImageSkiaRep;
-
-// CanvasImageSource is useful if you need to generate an image for
-// a scale factor using gfx::Canvas. It creates a new Canvas
-// with target scale factor and generates ImageSkiaRep when drawing is
-// completed.
-class GFX_EXPORT CanvasImageSource : public gfx::ImageSkiaSource {
- public:
- CanvasImageSource(const gfx::Size& size, bool is_opaque);
-
- // Called when a new image needs to be drawn for a scale factor.
- virtual void Draw(gfx::Canvas* canvas) = 0;
-
- // Returns the size of images in DIP that this source will generate.
- const gfx::Size& size() const { return size_; };
-
- // Overridden from gfx::ImageSkiaSource.
- gfx::ImageSkiaRep GetImageForScale(float scale) override;
-
- protected:
- ~CanvasImageSource() override {}
-
- const gfx::Size size_;
- const bool is_opaque_;
- DISALLOW_COPY_AND_ASSIGN(CanvasImageSource);
-};
-
-} // namespace gfx
-
-#endif // UI_GFX_IMAGE_CANVAS_IMAGE_SOURCE_H_
« no previous file with comments | « ui/gfx/image/OWNERS ('k') | ui/gfx/image/canvas_image_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698