| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
| 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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
| 10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 bool onAccessPixels(SkPixmap*) override; | 122 bool onAccessPixels(SkPixmap*) override; |
| 123 void onAttachToCanvas(SkCanvas*) override; | 123 void onAttachToCanvas(SkCanvas*) override; |
| 124 void onDetachFromCanvas() override; | 124 void onDetachFromCanvas() override; |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 friend class SkCanvas; | 127 friend class SkCanvas; |
| 128 friend struct DeviceCM; //for setMatrixClip | 128 friend struct DeviceCM; //for setMatrixClip |
| 129 friend class SkDraw; | 129 friend class SkDraw; |
| 130 friend class SkDrawIter; | 130 friend class SkDrawIter; |
| 131 friend class SkDeviceFilteredPaint; | 131 friend class SkDeviceFilteredPaint; |
| 132 friend class SkDeviceImageFilterProxy; | |
| 133 | 132 |
| 134 friend class SkSurface_Raster; | 133 friend class SkSurface_Raster; |
| 135 | 134 |
| 136 // used to change the backend's pixels (and possibly config/rowbytes) | 135 // used to change the backend's pixels (and possibly config/rowbytes) |
| 137 // but cannot change the width/height, so there should be no change to | 136 // but cannot change the width/height, so there should be no change to |
| 138 // any clip information. | 137 // any clip information. |
| 139 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; | 138 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; |
| 140 | 139 |
| 141 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; | 140 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; |
| 142 | 141 |
| 143 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; | 142 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; |
| 144 | 143 |
| 145 SkImageFilter::Cache* getImageFilterCache() override; | 144 SkImageFilter::Cache* getImageFilterCache() override; |
| 146 | 145 |
| 147 SkBitmap fBitmap; | 146 SkBitmap fBitmap; |
| 148 | 147 |
| 149 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). | 148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). |
| 150 | 149 |
| 151 typedef SkBaseDevice INHERITED; | 150 typedef SkBaseDevice INHERITED; |
| 152 }; | 151 }; |
| 153 | 152 |
| 154 #endif // SkBitmapDevice_DEFINED | 153 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |