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

Side by Side Diff: src/gpu/GrGpu.cpp

Issue 1304403003: Merge 1304263003 to m45 (Closed) Base URL: https://skia.googlesource.com/skia.git@m45
Patch Set: Created 5 years, 3 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/gpu/GrGpu.h ('k') | src/gpu/GrTest.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 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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/GrTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698