OLD | NEW |
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 * of 'picture'. If optimization data is available (due to an earlier | 336 * of 'picture'. If optimization data is available (due to an earlier |
337 * 'optimize' call) this entry point should make use of it and return true | 337 * 'optimize' call) this entry point should make use of it and return true |
338 * if all rendering has been done. If false is returned, SkCanvas will | 338 * if all rendering has been done. If false is returned, SkCanvas will |
339 * perform its own rendering pass. It is acceptable for the backend | 339 * perform its own rendering pass. It is acceptable for the backend |
340 * to perform some device-specific warm up tasks and then let SkCanvas | 340 * to perform some device-specific warm up tasks and then let SkCanvas |
341 * perform the main rendering loop (by return false from here). | 341 * perform the main rendering loop (by return false from here). |
342 */ | 342 */ |
343 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM
atrix*, | 343 virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkM
atrix*, |
344 const SkPaint*); | 344 const SkPaint*); |
345 | 345 |
| 346 void setPixelGeometry(SkPixelGeometry geo); |
| 347 |
346 private: | 348 private: |
347 friend class SkCanvas; | 349 friend class SkCanvas; |
348 friend struct DeviceCM; //for setMatrixClip | 350 friend struct DeviceCM; //for setMatrixClip |
349 friend class SkDraw; | 351 friend class SkDraw; |
350 friend class SkDrawIter; | 352 friend class SkDrawIter; |
351 friend class SkDeviceFilteredPaint; | 353 friend class SkDeviceFilteredPaint; |
352 friend class SkDeviceImageFilterProxy; | 354 friend class SkDeviceImageFilterProxy; |
353 friend class SkDeferredDevice; // for newSurface | 355 friend class SkDeferredDevice; // for newSurface |
354 | 356 |
355 friend class SkSurface_Raster; | 357 friend class SkSurface_Raster; |
(...skipping 26 matching lines...) Expand all Loading... |
382 SkDeviceProperties* fLeakyProperties; // will always exist. | 384 SkDeviceProperties* fLeakyProperties; // will always exist. |
383 | 385 |
384 #ifdef SK_DEBUG | 386 #ifdef SK_DEBUG |
385 bool fAttachedToCanvas; | 387 bool fAttachedToCanvas; |
386 #endif | 388 #endif |
387 | 389 |
388 typedef SkRefCnt INHERITED; | 390 typedef SkRefCnt INHERITED; |
389 }; | 391 }; |
390 | 392 |
391 #endif | 393 #endif |
OLD | NEW |