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

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

Issue 2769533002: Clean up calls to ToSkPicture (Closed)
Patch Set: Rebase 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/display_item_list.cc ('k') | cc/paint/paint_record.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_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 "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 const SkPoint pos[], 163 const SkPoint pos[],
164 const PaintFlags& flags) = 0; 164 const PaintFlags& flags) = 0;
165 virtual void drawTextBlob(sk_sp<SkTextBlob> blob, 165 virtual void drawTextBlob(sk_sp<SkTextBlob> blob,
166 SkScalar x, 166 SkScalar x,
167 SkScalar y, 167 SkScalar y,
168 const PaintFlags& flags) = 0; 168 const PaintFlags& flags) = 0;
169 169
170 virtual void drawDisplayItemList( 170 virtual void drawDisplayItemList(
171 scoped_refptr<DisplayItemList> display_item_list) = 0; 171 scoped_refptr<DisplayItemList> display_item_list) = 0;
172 172
173 virtual void drawPicture(sk_sp<const PaintRecord> record, 173 virtual void drawPicture(sk_sp<const PaintRecord> record) = 0;
174 const SkMatrix* matrix,
175 const PaintFlags* flags) = 0;
176 void drawPicture(sk_sp<const PaintRecord> record) {
177 drawPicture(record, nullptr, nullptr);
178 }
179 174
180 virtual bool isClipEmpty() const = 0; 175 virtual bool isClipEmpty() const = 0;
181 virtual bool isClipRect() const = 0; 176 virtual bool isClipRect() const = 0;
182 virtual const SkMatrix& getTotalMatrix() const = 0; 177 virtual const SkMatrix& getTotalMatrix() const = 0;
183 178
184 // For GraphicsContextCanvas only. Maybe this could be rewritten? 179 // For GraphicsContextCanvas only. Maybe this could be rewritten?
185 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix, 180 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix,
186 SkIRect* clip_bounds) = 0; 181 SkIRect* clip_bounds) = 0;
187 182
188 virtual bool ToPixmap(SkPixmap* output) = 0; 183 virtual bool ToPixmap(SkPixmap* output) = 0;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const SkPoint& point, 259 const SkPoint& point,
265 SkData* data); 260 SkData* data);
266 261
267 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas, 262 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas,
268 const SkRect& rect, 263 const SkRect& rect,
269 SkData* data); 264 SkData* data);
270 265
271 } // namespace cc 266 } // namespace cc
272 267
273 #endif // CC_PAINT_PAINT_CANVAS_H_ 268 #endif // CC_PAINT_PAINT_CANVAS_H_
OLDNEW
« no previous file with comments | « cc/paint/display_item_list.cc ('k') | cc/paint/paint_record.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698