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

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

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: retry upload Created 6 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 | Annotate | Revision Log
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPicture.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 /* 2 /*
3 * Copyright 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDevice_DEFINED 10 #ifndef SkDevice_DEFINED
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 virtual void* onAccessPixels(SkImageInfo* info, size_t* rowBytes); 416 virtual void* onAccessPixels(SkImageInfo* info, size_t* rowBytes);
417 417
418 /** 418 /**
419 * Leaky properties are those which the device should be applying but it is n't. 419 * Leaky properties are those which the device should be applying but it is n't.
420 * These properties will be applied by the draw, when and as it can. 420 * These properties will be applied by the draw, when and as it can.
421 * If the device does handle a property, that property should be set to the identity value 421 * If the device does handle a property, that property should be set to the identity value
422 * for that property, effectively making it non-leaky. 422 * for that property, effectively making it non-leaky.
423 */ 423 */
424 SkDeviceProperties fLeakyProperties; 424 SkDeviceProperties fLeakyProperties;
425 425
426 /**
427 * PRIVATE / EXPERIMENTAL -- do not call
428 * Construct an acceleration object and attach it to 'picture'
429 */
430 virtual void EXPERIMENTAL_optimize(SkPicture* picture);
431
432 /**
433 * PRIVATE / EXPERIMENTAL -- do not call
434 * This entry point gives the backend an opportunity to take over the rende ring
435 * of 'picture'. If optimization data is available (due to an earlier
436 * 'optimize' call) this entry point should make use of it and return true
437 * if all rendering has been done. If false is returned, SkCanvas will
438 * perform its own rendering pass. It is acceptable for the backend
439 * to perform some device-specific warm up tasks and then let SkCanvas
440 * perform the main rendering loop (by return false from here).
441 */
442 virtual bool EXPERIMENTAL_drawPicture(const SkPicture& picture);
443
426 private: 444 private:
427 friend class SkCanvas; 445 friend class SkCanvas;
428 friend struct DeviceCM; //for setMatrixClip 446 friend struct DeviceCM; //for setMatrixClip
429 friend class SkDraw; 447 friend class SkDraw;
430 friend class SkDrawIter; 448 friend class SkDrawIter;
431 friend class SkDeviceFilteredPaint; 449 friend class SkDeviceFilteredPaint;
432 friend class SkDeviceImageFilterProxy; 450 friend class SkDeviceImageFilterProxy;
433 friend class SkDeferredDevice; // for newSurface 451 friend class SkDeferredDevice; // for newSurface
434 452
435 friend class SkSurface_Raster; 453 friend class SkSurface_Raster;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 SkMetaData* fMetaData; 487 SkMetaData* fMetaData;
470 488
471 #ifdef SK_DEBUG 489 #ifdef SK_DEBUG
472 bool fAttachedToCanvas; 490 bool fAttachedToCanvas;
473 #endif 491 #endif
474 492
475 typedef SkRefCnt INHERITED; 493 typedef SkRefCnt INHERITED;
476 }; 494 };
477 495
478 #endif 496 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698