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

Side by Side Diff: cc/paint/paint_op_buffer.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/display_item_list.cc ('k') | cc/raster/image_hijack_canvas.h » ('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 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/base/math_util.h" 12 #include "cc/base/math_util.h"
13 #include "cc/paint/paint_canvas.h" 13 #include "cc/paint/paint_canvas.h"
14 #include "cc/paint/paint_export.h" 14 #include "cc/paint/paint_export.h"
15 #include "cc/paint/paint_flags.h" 15 #include "cc/paint/paint_flags.h"
16 #include "third_party/skia/include/core/SkPicture.h" 16 #include "third_party/skia/include/core/SkPicture.h"
17 #include "third_party/skia/include/core/SkRect.h" 17 #include "third_party/skia/include/core/SkRect.h"
18 #include "third_party/skia/include/core/SkTextBlob.h" 18 #include "third_party/skia/include/core/SkTextBlob.h"
19 19
20 // PaintOpBuffer is a reimplementation of SkLiteDL. 20 // PaintOpBuffer is a reimplementation of SkLiteDL.
21 // See: third_party/skia/src/core/SkLiteDL.h. 21 // See: third_party/skia/src/core/SkLiteDL.h.
22 22
23 namespace cc { 23 namespace cc {
24
25 class DisplayItemList; 24 class DisplayItemList;
26 25
27 class CC_PAINT_EXPORT ThreadsafeMatrix : public SkMatrix { 26 class CC_PAINT_EXPORT ThreadsafeMatrix : public SkMatrix {
28 public: 27 public:
29 explicit ThreadsafeMatrix(const SkMatrix& matrix) : SkMatrix(matrix) { 28 explicit ThreadsafeMatrix(const SkMatrix& matrix) : SkMatrix(matrix) {
30 (void)getType(); 29 (void)getType();
31 } 30 }
32 }; 31 };
33 32
34 class CC_PAINT_EXPORT ThreadsafePath : public SkPath { 33 class CC_PAINT_EXPORT ThreadsafePath : public SkPath {
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 size_t subrecord_bytes_used_ = 0; 968 size_t subrecord_bytes_used_ = 0;
970 bool has_discardable_images_ = false; 969 bool has_discardable_images_ = false;
971 SkRect cull_rect_; 970 SkRect cull_rect_;
972 971
973 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer); 972 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer);
974 }; 973 };
975 974
976 } // namespace cc 975 } // namespace cc
977 976
978 #endif // CC_PAINT_PAINT_OP_BUFFER_H_ 977 #endif // CC_PAINT_PAINT_OP_BUFFER_H_
OLDNEW
« no previous file with comments | « cc/paint/display_item_list.cc ('k') | cc/raster/image_hijack_canvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698