| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 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 | 8 |
| 9 | 9 |
| 10 #include "GrGpu.h" | 10 #include "GrGpu.h" |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 225 } |
| 226 | 226 |
| 227 void GrGpu::clearStencilClip(const SkIRect& rect, | 227 void GrGpu::clearStencilClip(const SkIRect& rect, |
| 228 bool insideClip, | 228 bool insideClip, |
| 229 GrRenderTarget* renderTarget) { | 229 GrRenderTarget* renderTarget) { |
| 230 SkASSERT(renderTarget); | 230 SkASSERT(renderTarget); |
| 231 this->handleDirtyContext(); | 231 this->handleDirtyContext(); |
| 232 this->onClearStencilClip(renderTarget, rect, insideClip); | 232 this->onClearStencilClip(renderTarget, rect, insideClip); |
| 233 } | 233 } |
| 234 | 234 |
| 235 bool GrGpu::copySurface(GrSurface* dst, |
| 236 GrSurface* src, |
| 237 const SkIRect& srcRect, |
| 238 const SkIPoint& dstPoint) { |
| 239 SkASSERT(dst && src); |
| 240 this->handleDirtyContext(); |
| 241 return this->onCopySurface(dst, src, srcRect, dstPoint); |
| 242 } |
| 243 |
| 235 bool GrGpu::readPixels(GrRenderTarget* target, | 244 bool GrGpu::readPixels(GrRenderTarget* target, |
| 236 int left, int top, int width, int height, | 245 int left, int top, int width, int height, |
| 237 GrPixelConfig config, void* buffer, | 246 GrPixelConfig config, void* buffer, |
| 238 size_t rowBytes) { | 247 size_t rowBytes) { |
| 239 this->handleDirtyContext(); | 248 this->handleDirtyContext(); |
| 240 return this->onReadPixels(target, left, top, width, height, | 249 return this->onReadPixels(target, left, top, width, height, |
| 241 config, buffer, rowBytes); | 250 config, buffer, rowBytes); |
| 242 } | 251 } |
| 243 | 252 |
| 244 bool GrGpu::writeTexturePixels(GrTexture* texture, | 253 bool GrGpu::writeTexturePixels(GrTexture* texture, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 //////////////////////////////////////////////////////////////////////////////// | 313 //////////////////////////////////////////////////////////////////////////////// |
| 305 | 314 |
| 306 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { | 315 void GrGpu::draw(const DrawArgs& args, const GrVertices& vertices) { |
| 307 this->handleDirtyContext(); | 316 this->handleDirtyContext(); |
| 308 GrVertices::Iterator iter; | 317 GrVertices::Iterator iter; |
| 309 const GrNonInstancedVertices* verts = iter.init(vertices); | 318 const GrNonInstancedVertices* verts = iter.init(vertices); |
| 310 do { | 319 do { |
| 311 this->onDraw(args, *verts); | 320 this->onDraw(args, *verts); |
| 312 } while ((verts = iter.next())); | 321 } while ((verts = iter.next())); |
| 313 } | 322 } |
| OLD | NEW |