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

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

Issue 2769533002: Clean up calls to ToSkPicture (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_PAINT_CANVAS_H_ 5 #ifndef CC_PAINT_PAINT_CANVAS_H_
6 #define CC_PAINT_PAINT_CANVAS_H_ 6 #define CC_PAINT_PAINT_CANVAS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 const PaintFlags& flags) = 0; 162 const PaintFlags& flags) = 0;
163 virtual void drawTextBlob(sk_sp<SkTextBlob> blob, 163 virtual void drawTextBlob(sk_sp<SkTextBlob> blob,
164 SkScalar x, 164 SkScalar x,
165 SkScalar y, 165 SkScalar y,
166 const PaintFlags& flags) = 0; 166 const PaintFlags& flags) = 0;
167 167
168 virtual void drawDisplayItemList( 168 virtual void drawDisplayItemList(
169 const SkRect& bounds, 169 const SkRect& bounds,
170 const DisplayItemList* display_item_list) = 0; 170 const DisplayItemList* display_item_list) = 0;
171 171
172 virtual void drawPicture(sk_sp<const PaintRecord> record, 172 virtual void drawPicture(sk_sp<const PaintRecord> record) = 0;
173 const SkMatrix* matrix,
174 const PaintFlags* flags) = 0;
175 void drawPicture(sk_sp<const PaintRecord> record) {
176 drawPicture(record, nullptr, nullptr);
177 }
178 173
179 virtual bool isClipEmpty() const = 0; 174 virtual bool isClipEmpty() const = 0;
180 virtual bool isClipRect() const = 0; 175 virtual bool isClipRect() const = 0;
181 virtual const SkMatrix& getTotalMatrix() const = 0; 176 virtual const SkMatrix& getTotalMatrix() const = 0;
182 177
183 // For GraphicsContextCanvas only. Maybe this could be rewritten? 178 // For GraphicsContextCanvas only. Maybe this could be rewritten?
184 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix, 179 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix,
185 SkIRect* clip_bounds) = 0; 180 SkIRect* clip_bounds) = 0;
186 181
187 virtual bool ToPixmap(SkPixmap* output) = 0; 182 virtual bool ToPixmap(SkPixmap* output) = 0;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 const SkPoint& point, 254 const SkPoint& point,
260 SkData* data); 255 SkData* data);
261 256
262 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas, 257 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas,
263 const SkRect& rect, 258 const SkRect& rect,
264 SkData* data); 259 SkData* data);
265 260
266 } // namespace cc 261 } // namespace cc
267 262
268 #endif // CC_PAINT_PAINT_CANVAS_H_ 263 #endif // CC_PAINT_PAINT_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698