| 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_POSITION_IMAGE_H_ | 5 #ifndef CC_PLAYBACK_POSITION_IMAGE_H_ |
| 6 #define CC_PLAYBACK_POSITION_IMAGE_H_ | 6 #define CC_PLAYBACK_POSITION_IMAGE_H_ |
| 7 | 7 |
| 8 #include "third_party/skia/include/core/SkFilterQuality.h" | 8 #include "third_party/skia/include/core/SkFilterQuality.h" |
| 9 #include "third_party/skia/include/core/SkImage.h" | 9 #include "third_party/skia/include/core/SkImage.h" |
| 10 #include "third_party/skia/include/core/SkMatrix.h" | 10 #include "third_party/skia/include/core/SkMatrix.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 image_rect(image_rect), | 21 image_rect(image_rect), |
| 22 matrix(matrix), | 22 matrix(matrix), |
| 23 filter_quality(filter_quality) {} | 23 filter_quality(filter_quality) {} |
| 24 | 24 |
| 25 const SkImage* image; | 25 const SkImage* image; |
| 26 SkRect image_rect; | 26 SkRect image_rect; |
| 27 SkMatrix matrix; | 27 SkMatrix matrix; |
| 28 SkFilterQuality filter_quality; | 28 SkFilterQuality filter_quality; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 struct DecodedPositionImage { |
| 32 DecodedPositionImage(const SkImage* image, |
| 33 const SkSize& scale_adjustment, |
| 34 SkFilterQuality filter_quality) |
| 35 : image(image), |
| 36 scale_adjustment(scale_adjustment), |
| 37 filter_quality(filter_quality) {} |
| 38 |
| 39 const SkImage* image; |
| 40 SkSize scale_adjustment; |
| 41 SkFilterQuality filter_quality; |
| 42 }; |
| 43 |
| 31 } // namespace cc | 44 } // namespace cc |
| 32 | 45 |
| 33 #endif // CC_PLAYBACK_POSITION_IMAGE_H_ | 46 #endif // CC_PLAYBACK_POSITION_IMAGE_H_ |
| OLD | NEW |