OLD | NEW |
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, | 160 fProxy->drawVertices(vmode, vertexCount, vertices, texs, colors, |
161 xmode, indices, indexCount, paint); | 161 xmode, indices, indexCount, paint); |
162 } | 162 } |
163 | 163 |
164 void SkProxyCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4
], | 164 void SkProxyCanvas::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4
], |
165 const SkPoint texCoords[4], SkXfermode* xmode, | 165 const SkPoint texCoords[4], SkXfermode* xmode, |
166 const SkPaint& paint) { | 166 const SkPaint& paint) { |
167 fProxy->drawPatch(cubics, colors, texCoords, xmode, paint); | 167 fProxy->drawPatch(cubics, colors, texCoords, xmode, paint); |
168 } | 168 } |
169 | 169 |
170 void SkProxyCanvas::drawData(const void* data, size_t length) { | |
171 fProxy->drawData(data, length); | |
172 } | |
173 | |
174 void SkProxyCanvas::beginCommentGroup(const char* description) { | 170 void SkProxyCanvas::beginCommentGroup(const char* description) { |
175 fProxy->beginCommentGroup(description); | 171 fProxy->beginCommentGroup(description); |
176 } | 172 } |
177 | 173 |
178 void SkProxyCanvas::addComment(const char* kywd, const char* value) { | 174 void SkProxyCanvas::addComment(const char* kywd, const char* value) { |
179 fProxy->addComment(kywd, value); | 175 fProxy->addComment(kywd, value); |
180 } | 176 } |
181 | 177 |
182 void SkProxyCanvas::endCommentGroup() { | 178 void SkProxyCanvas::endCommentGroup() { |
183 fProxy->endCommentGroup(); | 179 fProxy->endCommentGroup(); |
184 } | 180 } |
185 | 181 |
186 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { | 182 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { |
187 return fProxy->setDrawFilter(filter); | 183 return fProxy->setDrawFilter(filter); |
188 } | 184 } |
OLD | NEW |