| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_PAINT_OP_BUFFER_H_ | 5 #ifndef CC_PAINT_PAINT_OP_BUFFER_H_ |
| 6 #define CC_PAINT_PAINT_OP_BUFFER_H_ | 6 #define CC_PAINT_PAINT_OP_BUFFER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/aligned_memory.h" | 11 #include "base/memory/aligned_memory.h" |
| 12 #include "cc/paint/discardable_image_map.h" |
| 12 #include "cc/paint/paint_canvas.h" | 13 #include "cc/paint/paint_canvas.h" |
| 13 #include "cc/paint/paint_export.h" | 14 #include "cc/paint/paint_export.h" |
| 14 #include "cc/paint/paint_flags.h" | 15 #include "cc/paint/paint_flags.h" |
| 15 #include "third_party/skia/include/core/SkPicture.h" | 16 #include "third_party/skia/include/core/SkPicture.h" |
| 16 #include "third_party/skia/include/core/SkRect.h" | 17 #include "third_party/skia/include/core/SkRect.h" |
| 17 #include "third_party/skia/include/core/SkTextBlob.h" | 18 #include "third_party/skia/include/core/SkTextBlob.h" |
| 18 | 19 |
| 19 // PaintOpBuffer is a reimplementation of SkLiteDL. | 20 // PaintOpBuffer is a reimplementation of SkLiteDL. |
| 20 // See: third_party/skia/src/core/SkLiteDL.h. | 21 // See: third_party/skia/src/core/SkLiteDL.h. |
| 21 | 22 |
| 22 namespace cc { | 23 namespace cc { |
| 23 | |
| 24 class DisplayItemList; | 24 class DisplayItemList; |
| 25 | 25 |
| 26 class CC_PAINT_EXPORT ThreadsafeMatrix : public SkMatrix { | 26 class CC_PAINT_EXPORT ThreadsafeMatrix : public SkMatrix { |
| 27 public: | 27 public: |
| 28 explicit ThreadsafeMatrix(const SkMatrix& matrix) : SkMatrix(matrix) { | 28 explicit ThreadsafeMatrix(const SkMatrix& matrix) : SkMatrix(matrix) { |
| 29 (void)getType(); | 29 (void)getType(); |
| 30 } | 30 } |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 class CC_PAINT_EXPORT ThreadsafePath : public SkPath { | 33 class CC_PAINT_EXPORT ThreadsafePath : public SkPath { |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 size_t subrecord_bytes_used_ = 0; | 818 size_t subrecord_bytes_used_ = 0; |
| 819 bool has_discardable_images_ = false; | 819 bool has_discardable_images_ = false; |
| 820 SkRect cull_rect_; | 820 SkRect cull_rect_; |
| 821 | 821 |
| 822 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer); | 822 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer); |
| 823 }; | 823 }; |
| 824 | 824 |
| 825 } // namespace cc | 825 } // namespace cc |
| 826 | 826 |
| 827 #endif // CC_PAINT_PAINT_OP_BUFFER_H_ | 827 #endif // CC_PAINT_PAINT_OP_BUFFER_H_ |
| OLD | NEW |