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

Side by Side Diff: cc/paint/skia_paint_canvas.h

Issue 2757313002: Add PaintCanvas::drawDisplayItemList (Closed)
Patch Set: none Created 3 years, 9 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/paint_canvas.h ('k') | cc/paint/skia_paint_canvas.cc » ('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_SKIA_PAINT_CANVAS_H_ 5 #ifndef CC_PAINT_SKIA_PAINT_CANVAS_H_
6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_ 6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const PaintFlags& flags) override; 123 const PaintFlags& flags) override;
124 void drawPosText(const void* text, 124 void drawPosText(const void* text,
125 size_t byte_length, 125 size_t byte_length,
126 const SkPoint pos[], 126 const SkPoint pos[],
127 const PaintFlags& flags) override; 127 const PaintFlags& flags) override;
128 void drawTextBlob(sk_sp<SkTextBlob> blob, 128 void drawTextBlob(sk_sp<SkTextBlob> blob,
129 SkScalar x, 129 SkScalar x,
130 SkScalar y, 130 SkScalar y,
131 const PaintFlags& flags) override; 131 const PaintFlags& flags) override;
132 132
133 void drawDisplayItemList(const SkRect& bounds,
134 const DisplayItemList*) override;
135
133 void drawPicture(sk_sp<const PaintRecord> record, 136 void drawPicture(sk_sp<const PaintRecord> record,
134 const SkMatrix* matrix, 137 const SkMatrix* matrix,
135 const PaintFlags* flags) override; 138 const PaintFlags* flags) override;
136 139
137 bool isClipEmpty() const override; 140 bool isClipEmpty() const override;
138 bool isClipRect() const override; 141 bool isClipRect() const override;
139 const SkMatrix& getTotalMatrix() const override; 142 const SkMatrix& getTotalMatrix() const override;
140 143
141 void temporary_internal_describeTopLayer(SkMatrix* matrix, 144 void temporary_internal_describeTopLayer(SkMatrix* matrix,
142 SkIRect* clip_bounds) override; 145 SkIRect* clip_bounds) override;
(...skipping 13 matching lines...) Expand all
156 using PaintCanvas::drawPicture; 159 using PaintCanvas::drawPicture;
157 160
158 private: 161 private:
159 SkCanvas* canvas_; 162 SkCanvas* canvas_;
160 std::unique_ptr<SkCanvas> owned_; 163 std::unique_ptr<SkCanvas> owned_;
161 }; 164 };
162 165
163 } // namespace cc 166 } // namespace cc
164 167
165 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ 168 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_
OLDNEW
« no previous file with comments | « cc/paint/paint_canvas.h ('k') | cc/paint/skia_paint_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698