| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |