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

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

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Removed GPU headers from GM Created 6 years, 4 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/SkPatchUtils.cpp ('k') | no next file » | 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount, 144 void SkProxyCanvas::drawVertices(VertexMode vmode, int vertexCount,
145 const SkPoint vertices[], const SkPoint texs[], 145 const SkPoint vertices[], const SkPoint texs[],
146 const SkColor colors[], SkXfermode* xmode, 146 const SkColor colors[], SkXfermode* xmode,
147 const uint16_t indices[], int indexCount, 147 const uint16_t indices[], int indexCount,
148 const SkPaint& paint) { 148 const SkPaint& paint) {
149 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, 149 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors,
150 xmode, indices, indexCount, paint); 150 xmode, indices, indexCount, paint);
151 } 151 }
152 152
153 void SkProxyCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { 153 void SkProxyCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4 ],
154 fProxy->drawPatch(patch, paint); 154 const SkPoint texCoords[4], SkXfermode* xmode,
155 const SkPaint& paint) {
156 fProxy->drawPatch(cubics, colors, texCoords, xmode, paint);
155 } 157 }
156 158
157 void SkProxyCanvas::drawData(const void* data, size_t length) { 159 void SkProxyCanvas::drawData(const void* data, size_t length) {
158 fProxy->drawData(data, length); 160 fProxy->drawData(data, length);
159 } 161 }
160 162
161 void SkProxyCanvas::beginCommentGroup(const char* description) { 163 void SkProxyCanvas::beginCommentGroup(const char* description) {
162 fProxy->beginCommentGroup(description); 164 fProxy->beginCommentGroup(description);
163 } 165 }
164 166
165 void SkProxyCanvas::addComment(const char* kywd, const char* value) { 167 void SkProxyCanvas::addComment(const char* kywd, const char* value) {
166 fProxy->addComment(kywd, value); 168 fProxy->addComment(kywd, value);
167 } 169 }
168 170
169 void SkProxyCanvas::endCommentGroup() { 171 void SkProxyCanvas::endCommentGroup() {
170 fProxy->endCommentGroup(); 172 fProxy->endCommentGroup();
171 } 173 }
172 174
173 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 175 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
174 return fProxy->setDrawFilter(filter); 176 return fProxy->setDrawFilter(filter);
175 } 177 }
OLDNEW
« no previous file with comments | « src/utils/SkPatchUtils.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698