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

Side by Side Diff: include/core/SkDevice.h

Issue 448793004: add drawPicture variant that takes a matrix and paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more dummies so we can land Created 6 years, 4 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 | « include/core/SkCanvas.h ('k') | include/gpu/SkGpuDevice.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 /* 1 /*
2 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkDevice_DEFINED 8 #ifndef SkDevice_DEFINED
9 #define SkDevice_DEFINED 9 #define SkDevice_DEFINED
10 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 /** 341 /**
342 * PRIVATE / EXPERIMENTAL -- do not call 342 * PRIVATE / EXPERIMENTAL -- do not call
343 * This entry point gives the backend an opportunity to take over the rende ring 343 * This entry point gives the backend an opportunity to take over the rende ring
344 * of 'picture'. If optimization data is available (due to an earlier 344 * of 'picture'. If optimization data is available (due to an earlier
345 * 'optimize' call) this entry point should make use of it and return true 345 * 'optimize' call) this entry point should make use of it and return true
346 * if all rendering has been done. If false is returned, SkCanvas will 346 * if all rendering has been done. If false is returned, SkCanvas will
347 * perform its own rendering pass. It is acceptable for the backend 347 * perform its own rendering pass. It is acceptable for the backend
348 * to perform some device-specific warm up tasks and then let SkCanvas 348 * to perform some device-specific warm up tasks and then let SkCanvas
349 * perform the main rendering loop (by return false from here). 349 * perform the main rendering loop (by return false from here).
350 */ 350 */
351 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture); 351 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM atrix*,
352 const SkPaint*);
352 353
353 private: 354 private:
354 friend class SkCanvas; 355 friend class SkCanvas;
355 friend struct DeviceCM; //for setMatrixClip 356 friend struct DeviceCM; //for setMatrixClip
356 friend class SkDraw; 357 friend class SkDraw;
357 friend class SkDrawIter; 358 friend class SkDrawIter;
358 friend class SkDeviceFilteredPaint; 359 friend class SkDeviceFilteredPaint;
359 friend class SkDeviceImageFilterProxy; 360 friend class SkDeviceImageFilterProxy;
360 friend class SkDeferredDevice; // for newSurface 361 friend class SkDeferredDevice; // for newSurface
361 362
(...skipping 24 matching lines...) Expand all
386 SkMetaData* fMetaData; 387 SkMetaData* fMetaData;
387 388
388 #ifdef SK_DEBUG 389 #ifdef SK_DEBUG
389 bool fAttachedToCanvas; 390 bool fAttachedToCanvas;
390 #endif 391 #endif
391 392
392 typedef SkRefCnt INHERITED; 393 typedef SkRefCnt INHERITED;
393 }; 394 };
394 395
395 #endif 396 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/gpu/SkGpuDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698