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

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

Issue 13957009: First pass at Comment API (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review issues Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | tests/CanvasTest.cpp » ('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) {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 const uint16_t indices[], int indexCount, 151 const uint16_t indices[], int indexCount,
152 const SkPaint& paint) { 152 const SkPaint& paint) {
153 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, 153 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors,
154 xmode, indices, indexCount, paint); 154 xmode, indices, indexCount, paint);
155 } 155 }
156 156
157 void SkProxyCanvas::drawData(const void* data, size_t length) { 157 void SkProxyCanvas::drawData(const void* data, size_t length) {
158 fProxy->drawData(data, length); 158 fProxy->drawData(data, length);
159 } 159 }
160 160
161 void SkProxyCanvas::beginCommentGroup(const char* description) {
162 fProxy->beginCommentGroup(description);
163 }
164
165 void SkProxyCanvas::addComment(const char* kywd, const char* value) {
166 fProxy->addComment(kywd, value);
167 }
168
169 void SkProxyCanvas::endCommentGroup() {
170 fProxy->endCommentGroup();
171 }
172
161 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 173 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
162 return fProxy->setBounder(bounder); 174 return fProxy->setBounder(bounder);
163 } 175 }
164 176
165 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 177 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
166 return fProxy->setDrawFilter(filter); 178 return fProxy->setDrawFilter(filter);
167 } 179 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | tests/CanvasTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698