| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright 2006 The Android Open Source Project | 2  * Copyright 2006 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 SkCanvas_DEFINED | 8 #ifndef SkCanvas_DEFINED | 
| 9 #define SkCanvas_DEFINED | 9 #define SkCanvas_DEFINED | 
| 10 | 10 | 
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1138         SkPaint           fDefaultPaint; | 1138         SkPaint           fDefaultPaint; | 
| 1139         bool              fDone; | 1139         bool              fDone; | 
| 1140     }; | 1140     }; | 
| 1141 | 1141 | 
| 1142     // don't call | 1142     // don't call | 
| 1143     GrRenderTarget* internal_private_accessTopLayerRenderTarget(); | 1143     GrRenderTarget* internal_private_accessTopLayerRenderTarget(); | 
| 1144 | 1144 | 
| 1145     // don't call | 1145     // don't call | 
| 1146     static void Internal_Private_SetIgnoreSaveLayerBounds(bool); | 1146     static void Internal_Private_SetIgnoreSaveLayerBounds(bool); | 
| 1147     static bool Internal_Private_GetIgnoreSaveLayerBounds(); | 1147     static bool Internal_Private_GetIgnoreSaveLayerBounds(); | 
|  | 1148     static void Internal_Private_SetTreatSpriteAsBitmap(bool); | 
|  | 1149     static bool Internal_Private_GetTreatSpriteAsBitmap(); | 
| 1148 | 1150 | 
| 1149 protected: | 1151 protected: | 
| 1150     // default impl defers to getDevice()->newSurface(info) | 1152     // default impl defers to getDevice()->newSurface(info) | 
| 1151     virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&); | 1153     virtual SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&); | 
| 1152 | 1154 | 
| 1153     // default impl defers to its device | 1155     // default impl defers to its device | 
| 1154     virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); | 1156     virtual const void* onPeekPixels(SkImageInfo*, size_t* rowBytes); | 
| 1155     virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes); | 1157     virtual void* onAccessTopLayerPixels(SkImageInfo*, size_t* rowBytes); | 
| 1156 | 1158 | 
| 1157     // Subclass save/restore notifiers. | 1159     // Subclass save/restore notifiers. | 
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1480 | 1482 | 
| 1481 class SkCanvasClipVisitor { | 1483 class SkCanvasClipVisitor { | 
| 1482 public: | 1484 public: | 
| 1483     virtual ~SkCanvasClipVisitor(); | 1485     virtual ~SkCanvasClipVisitor(); | 
| 1484     virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 1486     virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; | 
| 1485     virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 1487     virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; | 
| 1486     virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 1488     virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; | 
| 1487 }; | 1489 }; | 
| 1488 | 1490 | 
| 1489 #endif | 1491 #endif | 
| OLD | NEW | 
|---|