| 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 #include "SkRecorder.h" | 8 #include "SkRecorder.h" |
| 9 #include "SkPatchUtils.h" | 9 #include "SkPatchUtils.h" |
| 10 #include "SkPicture.h" | 10 #include "SkPicture.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 void SkRecorder::addComment(const char* key, const char* value) { | 328 void SkRecorder::addComment(const char* key, const char* value) { |
| 329 APPEND(AddComment, this->copy(key), this->copy(value)); | 329 APPEND(AddComment, this->copy(key), this->copy(value)); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void SkRecorder::endCommentGroup() { | 332 void SkRecorder::endCommentGroup() { |
| 333 APPEND(EndCommentGroup); | 333 APPEND(EndCommentGroup); |
| 334 } | 334 } |
| 335 | 335 |
| 336 void SkRecorder::drawData(const void* data, size_t length) { | |
| 337 APPEND(DrawData, copy((const char*)data), length); | |
| 338 } | |
| OLD | NEW |