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

Unified Diff: cc/playback/draw_image.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 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 | « cc/playback/display_item_list_unittest.cc ('k') | cc/playback/draw_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/draw_image.h
diff --git a/cc/playback/draw_image.h b/cc/playback/draw_image.h
deleted file mode 100644
index d3633e0114156cdf2d31cd4a91c8b40ccc393709..0000000000000000000000000000000000000000
--- a/cc/playback/draw_image.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright 2015 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 CC_PLAYBACK_DRAW_IMAGE_H_
-#define CC_PLAYBACK_DRAW_IMAGE_H_
-
-#include "cc/base/cc_export.h"
-#include "third_party/skia/include/core/SkFilterQuality.h"
-#include "third_party/skia/include/core/SkImage.h"
-#include "third_party/skia/include/core/SkMatrix.h"
-#include "third_party/skia/include/core/SkRect.h"
-#include "third_party/skia/include/core/SkRefCnt.h"
-#include "ui/gfx/geometry/size_f.h"
-
-namespace cc {
-
-// TODO(vmpstr): This should probably be DISALLOW_COPY_AND_ASSIGN and transport
-// it around using a pointer, since it became kind of large. Profile.
-class CC_EXPORT DrawImage {
- public:
- DrawImage();
- DrawImage(sk_sp<const SkImage> image,
- const SkIRect& src_rect,
- SkFilterQuality filter_quality,
- const SkMatrix& matrix);
- DrawImage(const DrawImage& other);
- ~DrawImage();
-
- const sk_sp<const SkImage>& image() const { return image_; }
- const SkSize& scale() const { return scale_; }
- const SkIRect& src_rect() const { return src_rect_; }
- SkFilterQuality filter_quality() const { return filter_quality_; }
- bool matrix_is_decomposable() const { return matrix_is_decomposable_; }
- const SkMatrix& matrix() const { return matrix_; }
-
- DrawImage ApplyScale(float scale) const {
- SkMatrix scaled_matrix = matrix_;
- scaled_matrix.preScale(scale, scale);
- return DrawImage(image_, src_rect_, filter_quality_, scaled_matrix);
- }
-
- private:
- sk_sp<const SkImage> image_;
- SkIRect src_rect_;
- SkFilterQuality filter_quality_;
- SkMatrix matrix_;
- SkSize scale_;
- bool matrix_is_decomposable_;
-};
-
-} // namespace cc
-
-#endif // CC_PLAYBACK_DRAW_IMAGE_H_
« no previous file with comments | « cc/playback/display_item_list_unittest.cc ('k') | cc/playback/draw_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698