| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkDeferredCanvas_DEFINED | 8 #ifndef SkDeferredCanvas_DEFINED |
| 9 #define SkDeferredCanvas_DEFINED | 9 #define SkDeferredCanvas_DEFINED |
| 10 | 10 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 * once per flush when deferred rendering is enabled. | 215 * once per flush when deferred rendering is enabled. |
| 216 */ | 216 */ |
| 217 virtual void prepareForDraw() {} | 217 virtual void prepareForDraw() {} |
| 218 | 218 |
| 219 /** | 219 /** |
| 220 * Called after a recording a draw command if additional memory | 220 * Called after a recording a draw command if additional memory |
| 221 * had to be allocated for recording. | 221 * had to be allocated for recording. |
| 222 * @param newAllocatedStorage same value as would be returned by | 222 * @param newAllocatedStorage same value as would be returned by |
| 223 * storageAllocatedForRecording(), for convenience. | 223 * storageAllocatedForRecording(), for convenience. |
| 224 */ | 224 */ |
| 225 virtual void storageAllocatedForRecordingChanged( | 225 virtual void storageAllocatedForRecordingChanged(size_t /*newAllocatedSt
orage*/) {} |
| 226 size_t newAllocatedStorage) {} | |
| 227 | 226 |
| 228 /** | 227 /** |
| 229 * Called after pending draw commands have been flushed | 228 * Called after pending draw commands have been flushed |
| 230 */ | 229 */ |
| 231 virtual void flushedDrawCommands() {} | 230 virtual void flushedDrawCommands() {} |
| 232 | 231 |
| 233 /** | 232 /** |
| 234 * Called after pending draw commands have been skipped, meaning | 233 * Called after pending draw commands have been skipped, meaning |
| 235 * that they were optimized-out because the canvas is cleared | 234 * that they were optimized-out because the canvas is cleared |
| 236 * or completely overwritten by the command currently being recorded. | 235 * or completely overwritten by the command currently being recorded. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 257 | 256 |
| 258 mutable SkISize fCachedCanvasSize; | 257 mutable SkISize fCachedCanvasSize; |
| 259 mutable bool fCachedCanvasSizeDirty; | 258 mutable bool fCachedCanvasSizeDirty; |
| 260 | 259 |
| 261 friend class SkDeferredCanvasTester; // for unit testing | 260 friend class SkDeferredCanvasTester; // for unit testing |
| 262 typedef SkCanvas INHERITED; | 261 typedef SkCanvas INHERITED; |
| 263 }; | 262 }; |
| 264 | 263 |
| 265 | 264 |
| 266 #endif | 265 #endif |
| OLD | NEW |