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

Side by Side Diff: cc/raster/image_hijack_canvas.h

Issue 2842333003: cc: Update discardable image metadata generation to get PaintImages. (Closed)
Patch Set: win Created 3 years, 7 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 | « cc/paint/paint_op_buffer.h ('k') | cc/raster/image_hijack_canvas.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_RASTER_IMAGE_HIJACK_CANVAS_H_ 5 #ifndef CC_RASTER_IMAGE_HIJACK_CANVAS_H_
6 #define CC_RASTER_IMAGE_HIJACK_CANVAS_H_ 6 #define CC_RASTER_IMAGE_HIJACK_CANVAS_H_
7 7
8 #include <unordered_set> 8 #include <unordered_set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 bool use_center, 49 bool use_center,
50 const SkPaint& paint) override; 50 const SkPaint& paint) override;
51 void onDrawRRect(const SkRRect& rr, const SkPaint& paint) override; 51 void onDrawRRect(const SkRRect& rr, const SkPaint& paint) override;
52 void onDrawImageNine(const SkImage* image, 52 void onDrawImageNine(const SkImage* image,
53 const SkIRect& center, 53 const SkIRect& center,
54 const SkRect& dst, 54 const SkRect& dst,
55 const SkPaint* paint) override; 55 const SkPaint* paint) override;
56 56
57 bool ShouldSkipImage(const SkImage* image) const; 57 bool ShouldSkipImage(const SkImage* image) const;
58 bool ShouldSkipImageInPaint(const SkPaint& paint) const; 58 bool ShouldSkipImageInPaint(const SkPaint& paint) const;
59 bool QuickRejectDraw(const SkRect& rect, const SkPaint* paint) const;
59 60
60 ImageDecodeCache* image_decode_cache_; 61 ImageDecodeCache* image_decode_cache_;
61 const ImageIdFlatSet* images_to_skip_; 62 const ImageIdFlatSet* images_to_skip_;
62 const gfx::ColorSpace target_color_space_; 63 const gfx::ColorSpace target_color_space_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas); 65 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas);
65 }; 66 };
66 67
67 } // namespace cc 68 } // namespace cc
68 69
69 #endif // CC_RASTER_IMAGE_HIJACK_CANVAS_H_ 70 #endif // CC_RASTER_IMAGE_HIJACK_CANVAS_H_
OLDNEW
« no previous file with comments | « cc/paint/paint_op_buffer.h ('k') | cc/raster/image_hijack_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698