| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 beginCommentGroup(const char*) SK_OVERRIDE; | 133 void beginCommentGroup(const char*) SK_OVERRIDE; |
| 134 void addComment(const char*, const char*) SK_OVERRIDE; | 134 void addComment(const char*, const char*) SK_OVERRIDE; |
| 135 void endCommentGroup() SK_OVERRIDE; | 135 void endCommentGroup() SK_OVERRIDE; |
| 136 void drawData(const void*, size_t) SK_OVERRIDE; | |
| 137 | 136 |
| 138 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI
DE { return NULL; } | 137 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI
DE { return NULL; } |
| 139 | 138 |
| 140 private: | 139 private: |
| 141 template <typename T> | 140 template <typename T> |
| 142 T* copy(const T*); | 141 T* copy(const T*); |
| 143 | 142 |
| 144 template <typename T> | 143 template <typename T> |
| 145 T* copy(const T[], size_t count); | 144 T* copy(const T[], size_t count); |
| 146 | 145 |
| 147 SkIRect devBounds() const { | 146 SkIRect devBounds() const { |
| 148 SkIRect devBounds; | 147 SkIRect devBounds; |
| 149 this->getClipDeviceBounds(&devBounds); | 148 this->getClipDeviceBounds(&devBounds); |
| 150 return devBounds; | 149 return devBounds; |
| 151 } | 150 } |
| 152 | 151 |
| 153 SkRecord* fRecord; | 152 SkRecord* fRecord; |
| 154 | 153 |
| 155 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; | 154 SkAutoTDelete<SkCanvasDrawableList> fDrawableList; |
| 156 }; | 155 }; |
| 157 | 156 |
| 158 #endif//SkRecorder_DEFINED | 157 #endif//SkRecorder_DEFINED |
| OLD | NEW |