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

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

Issue 2757313002: Add PaintCanvas::drawDisplayItemList (Closed)
Patch Set: 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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const PaintFlags& flags) override; 134 const PaintFlags& flags) override;
135 void drawTextBlob(const SkTextBlob* blob, 135 void drawTextBlob(const SkTextBlob* blob,
136 SkScalar x, 136 SkScalar x,
137 SkScalar y, 137 SkScalar y,
138 const PaintFlags& flags) override; 138 const PaintFlags& flags) override;
139 void drawTextBlob(const sk_sp<SkTextBlob>& blob, 139 void drawTextBlob(const sk_sp<SkTextBlob>& blob,
140 SkScalar x, 140 SkScalar x,
141 SkScalar y, 141 SkScalar y,
142 const PaintFlags& flags) override; 142 const PaintFlags& flags) override;
143 143
144 void drawDisplayItemList(const SkRect& bounds,
145 const DisplayItemList*) override;
146
144 void drawPicture(const PaintRecord* record) override; 147 void drawPicture(const PaintRecord* record) override;
145 void drawPicture(const PaintRecord* record, 148 void drawPicture(const PaintRecord* record,
146 const SkMatrix* matrix, 149 const SkMatrix* matrix,
147 const PaintFlags* flags) override; 150 const PaintFlags* flags) override;
148 void drawPicture(sk_sp<PaintRecord> record) override; 151 void drawPicture(sk_sp<PaintRecord> record) override;
149 152
150 bool isClipEmpty() const override; 153 bool isClipEmpty() const override;
151 bool isClipRect() const override; 154 bool isClipRect() const override;
152 const SkMatrix& getTotalMatrix() const override; 155 const SkMatrix& getTotalMatrix() const override;
153 156
(...skipping 14 matching lines...) Expand all
168 using PaintCanvas::drawImage; 171 using PaintCanvas::drawImage;
169 172
170 private: 173 private:
171 SkCanvas* canvas_; 174 SkCanvas* canvas_;
172 std::unique_ptr<SkCanvas> owned_; 175 std::unique_ptr<SkCanvas> owned_;
173 }; 176 };
174 177
175 } // namespace cc 178 } // namespace cc
176 179
177 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ 180 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698