| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CC_PLAYBACK_DRAW_IMAGE_H_ | 5 #ifndef CC_PAINT_DRAW_IMAGE_H_ |
| 6 #define CC_PLAYBACK_DRAW_IMAGE_H_ | 6 #define CC_PAINT_DRAW_IMAGE_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/paint/paint_export.h" |
| 9 #include "third_party/skia/include/core/SkFilterQuality.h" | 9 #include "third_party/skia/include/core/SkFilterQuality.h" |
| 10 #include "third_party/skia/include/core/SkImage.h" | 10 #include "third_party/skia/include/core/SkImage.h" |
| 11 #include "third_party/skia/include/core/SkMatrix.h" | 11 #include "third_party/skia/include/core/SkMatrix.h" |
| 12 #include "third_party/skia/include/core/SkRect.h" | 12 #include "third_party/skia/include/core/SkRect.h" |
| 13 #include "third_party/skia/include/core/SkRefCnt.h" | 13 #include "third_party/skia/include/core/SkRefCnt.h" |
| 14 #include "ui/gfx/geometry/size_f.h" | 14 #include "ui/gfx/geometry/size_f.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 | 17 |
| 18 // TODO(vmpstr): This should probably be DISALLOW_COPY_AND_ASSIGN and transport | 18 // TODO(vmpstr): This should probably be DISALLOW_COPY_AND_ASSIGN and transport |
| 19 // it around using a pointer, since it became kind of large. Profile. | 19 // it around using a pointer, since it became kind of large. Profile. |
| 20 class CC_EXPORT DrawImage { | 20 class CC_PAINT_EXPORT DrawImage { |
| 21 public: | 21 public: |
| 22 DrawImage(); | 22 DrawImage(); |
| 23 DrawImage(sk_sp<const SkImage> image, | 23 DrawImage(sk_sp<const SkImage> image, |
| 24 const SkIRect& src_rect, | 24 const SkIRect& src_rect, |
| 25 SkFilterQuality filter_quality, | 25 SkFilterQuality filter_quality, |
| 26 const SkMatrix& matrix); | 26 const SkMatrix& matrix); |
| 27 DrawImage(const DrawImage& other); | 27 DrawImage(const DrawImage& other); |
| 28 ~DrawImage(); | 28 ~DrawImage(); |
| 29 | 29 |
| 30 const sk_sp<const SkImage>& image() const { return image_; } | 30 const sk_sp<const SkImage>& image() const { return image_; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 44 sk_sp<const SkImage> image_; | 44 sk_sp<const SkImage> image_; |
| 45 SkIRect src_rect_; | 45 SkIRect src_rect_; |
| 46 SkFilterQuality filter_quality_; | 46 SkFilterQuality filter_quality_; |
| 47 SkMatrix matrix_; | 47 SkMatrix matrix_; |
| 48 SkSize scale_; | 48 SkSize scale_; |
| 49 bool matrix_is_decomposable_; | 49 bool matrix_is_decomposable_; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace cc | 52 } // namespace cc |
| 53 | 53 |
| 54 #endif // CC_PLAYBACK_DRAW_IMAGE_H_ | 54 #endif // CC_PAINT_DRAW_IMAGE_H_ |
| OLD | NEW |