| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; | 109 void onPushCull(const SkRect& cullRect) SK_OVERRIDE; |
| 110 void onPopCull() SK_OVERRIDE; | 110 void onPopCull() SK_OVERRIDE; |
| 111 | 111 |
| 112 void beginCommentGroup(const char*) SK_OVERRIDE; | 112 void beginCommentGroup(const char*) SK_OVERRIDE; |
| 113 void addComment(const char*, const char*) SK_OVERRIDE; | 113 void addComment(const char*, const char*) SK_OVERRIDE; |
| 114 void endCommentGroup() SK_OVERRIDE; | 114 void endCommentGroup() SK_OVERRIDE; |
| 115 void drawData(const void*, size_t) SK_OVERRIDE; | 115 void drawData(const void*, size_t) SK_OVERRIDE; |
| 116 | 116 |
| 117 bool isDrawingToLayer() const SK_OVERRIDE; | 117 bool isDrawingToLayer() const SK_OVERRIDE; |
| 118 SkSurface* onNewSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRI
DE { return NULL; } | 118 SkSurface* onNewSurface(const SkImageInfo&) SK_OVERRIDE { return NULL; } |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 template <typename T> | 121 template <typename T> |
| 122 T* copy(const T*); | 122 T* copy(const T*); |
| 123 | 123 |
| 124 template <typename T> | 124 template <typename T> |
| 125 T* copy(const T[], size_t count); | 125 T* copy(const T[], size_t count); |
| 126 | 126 |
| 127 SkIRect devBounds() const { | 127 SkIRect devBounds() const { |
| 128 SkIRect devBounds; | 128 SkIRect devBounds; |
| 129 this->getClipDeviceBounds(&devBounds); | 129 this->getClipDeviceBounds(&devBounds); |
| 130 return devBounds; | 130 return devBounds; |
| 131 } | 131 } |
| 132 | 132 |
| 133 SkRecord* fRecord; | 133 SkRecord* fRecord; |
| 134 | 134 |
| 135 int fSaveLayerCount; | 135 int fSaveLayerCount; |
| 136 SkTDArray<SkBool8> fSaveIsSaveLayer; | 136 SkTDArray<SkBool8> fSaveIsSaveLayer; |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #endif//SkRecorder_DEFINED | 139 #endif//SkRecorder_DEFINED |
| OLD | NEW |