OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/playback/draw_image.h" |
| 6 |
| 7 namespace cc { |
| 8 |
| 9 DrawImage::DrawImage() |
| 10 : image_(nullptr), |
| 11 src_rect_(SkIRect::MakeXYWH(0, 0, 0, 0)), |
| 12 scale_(SkSize::Make(1.f, 1.f)), |
| 13 filter_quality_(kNone_SkFilterQuality) {} |
| 14 |
| 15 DrawImage::DrawImage(const SkImage* image, |
| 16 const SkIRect& src_rect, |
| 17 const SkSize& scale, |
| 18 SkFilterQuality filter_quality, |
| 19 bool matrix_has_perspective, |
| 20 bool matrix_is_decomposable) |
| 21 : image_(image), |
| 22 src_rect_(src_rect), |
| 23 scale_(scale), |
| 24 filter_quality_(filter_quality), |
| 25 matrix_has_perspective_(matrix_has_perspective), |
| 26 matrix_is_decomposable_(matrix_is_decomposable) {} |
| 27 |
| 28 DrawImage::DrawImage(const DrawImage& other) |
| 29 : image_(other.image_), |
| 30 src_rect_(other.src_rect_), |
| 31 scale_(other.scale_), |
| 32 filter_quality_(other.filter_quality_), |
| 33 matrix_has_perspective_(other.matrix_has_perspective_), |
| 34 matrix_is_decomposable_(other.matrix_is_decomposable_) {} |
| 35 |
| 36 } // namespace cc |
OLD | NEW |