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

Side by Side Diff: cc/paint/draw_image.h

Issue 2924233002: cc: Move pre-decodes to background worker. (Closed)
Patch Set: flake is flaky. T_T Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/paint/draw_image.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_PAINT_DRAW_IMAGE_H_ 5 #ifndef CC_PAINT_DRAW_IMAGE_H_
6 #define CC_PAINT_DRAW_IMAGE_H_ 6 #define CC_PAINT_DRAW_IMAGE_H_
7 7
8 #include "cc/paint/paint_export.h" 8 #include "cc/paint/paint_export.h"
9 #include "cc/paint/paint_image.h" 9 #include "cc/paint/paint_image.h"
10 #include "third_party/skia/include/core/SkFilterQuality.h" 10 #include "third_party/skia/include/core/SkFilterQuality.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 DrawImage(); 24 DrawImage();
25 DrawImage(PaintImage image, 25 DrawImage(PaintImage image,
26 const SkIRect& src_rect, 26 const SkIRect& src_rect,
27 SkFilterQuality filter_quality, 27 SkFilterQuality filter_quality,
28 const SkMatrix& matrix, 28 const SkMatrix& matrix,
29 const gfx::ColorSpace& target_color_space); 29 const gfx::ColorSpace& target_color_space);
30 DrawImage(const DrawImage& other); 30 DrawImage(const DrawImage& other);
31 ~DrawImage(); 31 ~DrawImage();
32 32
33 bool operator==(const DrawImage& other) const;
34
33 const PaintImage& paint_image() const { return paint_image_; } 35 const PaintImage& paint_image() const { return paint_image_; }
34 const sk_sp<SkImage>& image() const { return paint_image_.sk_image(); } 36 const sk_sp<SkImage>& image() const { return paint_image_.sk_image(); }
35 const SkSize& scale() const { return scale_; } 37 const SkSize& scale() const { return scale_; }
36 const SkIRect& src_rect() const { return src_rect_; } 38 const SkIRect& src_rect() const { return src_rect_; }
37 SkFilterQuality filter_quality() const { return filter_quality_; } 39 SkFilterQuality filter_quality() const { return filter_quality_; }
38 bool matrix_is_decomposable() const { return matrix_is_decomposable_; } 40 bool matrix_is_decomposable() const { return matrix_is_decomposable_; }
39 const SkMatrix& matrix() const { return matrix_; } 41 const SkMatrix& matrix() const { return matrix_; }
40 const gfx::ColorSpace& target_color_space() const { 42 const gfx::ColorSpace& target_color_space() const {
41 return target_color_space_; 43 return target_color_space_;
42 } 44 }
(...skipping 15 matching lines...) Expand all
58 SkFilterQuality filter_quality_; 60 SkFilterQuality filter_quality_;
59 SkMatrix matrix_; 61 SkMatrix matrix_;
60 SkSize scale_; 62 SkSize scale_;
61 bool matrix_is_decomposable_; 63 bool matrix_is_decomposable_;
62 gfx::ColorSpace target_color_space_; 64 gfx::ColorSpace target_color_space_;
63 }; 65 };
64 66
65 } // namespace cc 67 } // namespace cc
66 68
67 #endif // CC_PAINT_DRAW_IMAGE_H_ 69 #endif // CC_PAINT_DRAW_IMAGE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/paint/draw_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698