| 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_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ | 5 #ifndef CC_RASTER_IMAGE_HIJACK_CANVAS_H_ |
| 6 #define CC_PLAYBACK_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" |
| 11 #include "cc/base/cc_export.h" | 11 #include "cc/cc_export.h" |
| 12 #include "cc/playback/image_id.h" | 12 #include "cc/paint/image_id.h" |
| 13 #include "third_party/skia/include/utils/SkNWayCanvas.h" | 13 #include "third_party/skia/include/utils/SkNWayCanvas.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 class ImageDecodeCache; | 17 class ImageDecodeCache; |
| 18 | 18 |
| 19 class CC_EXPORT ImageHijackCanvas : public SkNWayCanvas { | 19 class CC_EXPORT ImageHijackCanvas : public SkNWayCanvas { |
| 20 public: | 20 public: |
| 21 ImageHijackCanvas(int width, | 21 ImageHijackCanvas(int width, |
| 22 int height, | 22 int height, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 bool ShouldSkipImageInPaint(const SkPaint& paint) const; | 56 bool ShouldSkipImageInPaint(const SkPaint& paint) const; |
| 57 | 57 |
| 58 ImageDecodeCache* image_decode_cache_; | 58 ImageDecodeCache* image_decode_cache_; |
| 59 const ImageIdFlatSet* images_to_skip_; | 59 const ImageIdFlatSet* images_to_skip_; |
| 60 | 60 |
| 61 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas); | 61 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas); |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace cc | 64 } // namespace cc |
| 65 | 65 |
| 66 #endif // CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ | 66 #endif // CC_RASTER_IMAGE_HIJACK_CANVAS_H_ |
| OLD | NEW |