| 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_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ |
| 6 #define CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ | 6 #define CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/skia/include/core/SkCanvas.h" | |
| 10 #include "third_party/skia/include/utils/SkNWayCanvas.h" | 9 #include "third_party/skia/include/utils/SkNWayCanvas.h" |
| 11 | 10 |
| 12 namespace cc { | 11 namespace cc { |
| 13 | 12 |
| 14 class ImageDecodeController; | 13 class ImageDecodeController; |
| 15 | 14 |
| 16 class ImageHijackCanvas : public SkNWayCanvas { | 15 class ImageHijackCanvas : public SkNWayCanvas { |
| 17 public: | 16 public: |
| 18 ImageHijackCanvas(int width, | 17 ImageHijackCanvas(int width, |
| 19 int height, | 18 int height, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 const SkPaint* paint) override; | 40 const SkPaint* paint) override; |
| 42 | 41 |
| 43 ImageDecodeController* image_decode_controller_; | 42 ImageDecodeController* image_decode_controller_; |
| 44 | 43 |
| 45 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas); | 44 DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas); |
| 46 }; | 45 }; |
| 47 | 46 |
| 48 } // namespace cc | 47 } // namespace cc |
| 49 | 48 |
| 50 #endif // CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ | 49 #endif // CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_ |
| OLD | NEW |