Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/core/SkRecorder.cpp

Issue 803913005: Remove SkCanvas::isDrawingToLayer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 } 336 }
337 337
338 void SkRecorder::addComment(const char* key, const char* value) { 338 void SkRecorder::addComment(const char* key, const char* value) {
339 APPEND(AddComment, this->copy(key), this->copy(value)); 339 APPEND(AddComment, this->copy(key), this->copy(value));
340 } 340 }
341 341
342 void SkRecorder::endCommentGroup() { 342 void SkRecorder::endCommentGroup() {
343 APPEND(EndCommentGroup); 343 APPEND(EndCommentGroup);
344 } 344 }
345 345
346 bool SkRecorder::isDrawingToLayer() const {
347 return fSaveLayerCount > 0;
mtklein 2014/12/15 17:21:03 Mind removing fSaveLayerCount and fSaveIsSaveLayer
348 }
349
350 void SkRecorder::drawData(const void* data, size_t length) { 346 void SkRecorder::drawData(const void* data, size_t length) {
351 APPEND(DrawData, copy((const char*)data), length); 347 APPEND(DrawData, copy((const char*)data), length);
352 } 348 }
OLDNEW
« include/core/SkCanvas.h ('K') | « src/core/SkRecorder.h ('k') | src/pipe/SkGPipeWrite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698