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

Side by Side Diff: src/utils/SkProxyCanvas.cpp

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 years, 5 months 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
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "SkProxyCanvas.h" 8 #include "SkProxyCanvas.h"
9 9
10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) { 10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) {
11 SkSafeRef(fProxy); 11 SkSafeRef(fProxy);
12 } 12 }
13 13
14 SkProxyCanvas::~SkProxyCanvas() { 14 SkProxyCanvas::~SkProxyCanvas() {
15 SkSafeUnref(fProxy); 15 SkSafeUnref(fProxy);
16 } 16 }
17 17
18 void SkProxyCanvas::setProxy(SkCanvas* proxy) { 18 void SkProxyCanvas::setProxy(SkCanvas* proxy) {
19 SkRefCnt_SafeAssign(fProxy, proxy); 19 SkRefCnt_SafeAssign(fProxy, proxy);
20 } 20 }
21 21
22 ///////////////////////////////// Overrides /////////// 22 ///////////////////////////////// Overrides ///////////
23 23
24 void SkProxyCanvas::willSave(SaveFlags flags) { 24 void SkProxyCanvas::willSave() {
25 fProxy->save(flags); 25 fProxy->save();
26 this->INHERITED::willSave(flags); 26 this->INHERITED::willSave();
27 } 27 }
28 28
29 SkCanvas::SaveLayerStrategy SkProxyCanvas::willSaveLayer(const SkRect* bounds, c onst SkPaint* paint, 29 SkCanvas::SaveLayerStrategy SkProxyCanvas::willSaveLayer(const SkRect* bounds, c onst SkPaint* paint,
30 SaveFlags flags) { 30 SaveFlags flags) {
31 fProxy->saveLayer(bounds, paint, flags); 31 fProxy->saveLayer(bounds, paint, flags);
32 this->INHERITED::willSaveLayer(bounds, paint, flags); 32 this->INHERITED::willSaveLayer(bounds, paint, flags);
33 // No need for a layer. 33 // No need for a layer.
34 return kNoLayer_SaveLayerStrategy; 34 return kNoLayer_SaveLayerStrategy;
35 } 35 }
36 36
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 fProxy->addComment(kywd, value); 161 fProxy->addComment(kywd, value);
162 } 162 }
163 163
164 void SkProxyCanvas::endCommentGroup() { 164 void SkProxyCanvas::endCommentGroup() {
165 fProxy->endCommentGroup(); 165 fProxy->endCommentGroup();
166 } 166 }
167 167
168 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 168 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
169 return fProxy->setDrawFilter(filter); 169 return fProxy->setDrawFilter(filter);
170 } 170 }
OLDNEW
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698