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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 } | 367 } |
368 | 368 |
369 virtual void initForRootLayer(SkPixelGeometry geo); | 369 virtual void initForRootLayer(SkPixelGeometry geo); |
370 | 370 |
371 private: | 371 private: |
372 friend class SkCanvas; | 372 friend class SkCanvas; |
373 friend struct DeviceCM; //for setMatrixClip | 373 friend struct DeviceCM; //for setMatrixClip |
374 friend class SkDraw; | 374 friend class SkDraw; |
375 friend class SkDrawIter; | 375 friend class SkDrawIter; |
376 friend class SkDeviceFilteredPaint; | 376 friend class SkDeviceFilteredPaint; |
377 friend class SkDeviceImageFilterProxy; | 377 friend class SkImageFilter::Proxy; |
378 friend class SkDeferredDevice; // for newSurface | 378 friend class SkDeferredDevice; // for newSurface |
379 friend class SkNoPixelsBitmapDevice; | 379 friend class SkNoPixelsBitmapDevice; |
380 | 380 |
381 friend class SkSurface_Raster; | 381 friend class SkSurface_Raster; |
382 | 382 |
383 // used to change the backend's pixels (and possibly config/rowbytes) | 383 // used to change the backend's pixels (and possibly config/rowbytes) |
384 // but cannot change the width/height, so there should be no change to | 384 // but cannot change the width/height, so there should be no change to |
385 // any clip information. | 385 // any clip information. |
386 // TODO: move to SkBitmapDevice | 386 // TODO: move to SkBitmapDevice |
387 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {} | 387 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) {} |
(...skipping 14 matching lines...) Expand all Loading... |
402 SkDeviceProperties* fLeakyProperties; // will always exist. | 402 SkDeviceProperties* fLeakyProperties; // will always exist. |
403 | 403 |
404 #ifdef SK_DEBUG | 404 #ifdef SK_DEBUG |
405 bool fAttachedToCanvas; | 405 bool fAttachedToCanvas; |
406 #endif | 406 #endif |
407 | 407 |
408 typedef SkRefCnt INHERITED; | 408 typedef SkRefCnt INHERITED; |
409 }; | 409 }; |
410 | 410 |
411 #endif | 411 #endif |
OLD | NEW |