| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 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 SkRecorder_DEFINED | 8 #ifndef SkRecorder_DEFINED |
| 9 #define SkRecorder_DEFINED | 9 #define SkRecorder_DEFINED |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const SkPoint texCoords[4], SkXfermode* xmode, | 123 const SkPoint texCoords[4], SkXfermode* xmode, |
| 124 const SkPaint& paint) SK_OVERRIDE; | 124 const SkPaint& paint) SK_OVERRIDE; |
| 125 | 125 |
| 126 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 126 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
| 127 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; | 127 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle) SK_OVERRIDE; |
| 128 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; | 128 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
) SK_OVERRIDE; |
| 129 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; | 129 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op) SK_OVERRIDE; |
| 130 | 130 |
| 131 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; | 131 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE
RRIDE; |
| 132 | 132 |
| 133 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | |
| 134 void onPopCull() SK_OVERRIDE; | |
| 135 | |
| 136 void beginCommentGroup(const char*) SK_OVERRIDE; | 133 void beginCommentGroup(const char*) SK_OVERRIDE; |
| 137 void addComment(const char*, const char*) SK_OVERRIDE; | 134 void addComment(const char*, const char*) SK_OVERRIDE; |
| 138 void endCommentGroup() SK_OVERRIDE; | 135 void endCommentGroup() SK_OVERRIDE; |
| 139 void drawData(const void*, size_t) SK_OVERRIDE; | 136 void drawData(const void*, size_t) SK_OVERRIDE; |
| 140 | 137 |
| 141 bool isDrawingToLayer() const SK_OVERRIDE; | 138 bool isDrawingToLayer() const SK_OVERRIDE; |
| 142 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI
DE { return NULL; } | 139 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI
DE { return NULL; } |
| 143 | 140 |
| 144 private: | 141 private: |
| 145 template <typename T> | 142 template <typename T> |
| 146 T* copy(const T*); | 143 T* copy(const T*); |
| 147 | 144 |
| 148 template <typename T> | 145 template <typename T> |
| 149 T* copy(const T[], size_t count); | 146 T* copy(const T[], size_t count); |
| 150 | 147 |
| 151 SkIRect devBounds() const { | 148 SkIRect devBounds() const { |
| 152 SkIRect devBounds; | 149 SkIRect devBounds; |
| 153 this->getClipDeviceBounds(&devBounds); | 150 this->getClipDeviceBounds(&devBounds); |
| 154 return devBounds; | 151 return devBounds; |
| 155 } | 152 } |
| 156 | 153 |
| 157 SkRecord* fRecord; | 154 SkRecord* fRecord; |
| 158 | 155 |
| 159 int fSaveLayerCount; | 156 int fSaveLayerCount; |
| 160 SkTDArray<SkBool8> fSaveIsSaveLayer; | 157 SkTDArray<SkBool8> fSaveIsSaveLayer; |
| 161 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; | 158 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; |
| 162 }; | 159 }; |
| 163 | 160 |
| 164 #endif//SkRecorder_DEFINED | 161 #endif//SkRecorder_DEFINED |
| OLD | NEW |