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

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

Issue 1289673004: GrCopySurfaceBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@cs
Patch Set: Created 5 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/gpu/GrImmediateDrawTarget.h ('k') | src/gpu/batches/GrCopySurfaceBatch.h » ('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 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrImmediateDrawTarget.h" 8 #include "GrImmediateDrawTarget.h"
9 9
10 #include "GrGpu.h" 10 #include "GrGpu.h"
(...skipping 22 matching lines...) Expand all
33 GrVertexBatch* vertexBatch = static_cast<GrVertexBatch*>(batch); 33 GrVertexBatch* vertexBatch = static_cast<GrVertexBatch*>(batch);
34 vertexBatch->prepareDraws(&fBatchTarget); 34 vertexBatch->prepareDraws(&fBatchTarget);
35 vertexBatch->setNumberOfDraws(fBatchTarget.numberOfDraws()); 35 vertexBatch->setNumberOfDraws(fBatchTarget.numberOfDraws());
36 36
37 fBatchTarget.preFlush(); 37 fBatchTarget.preFlush();
38 fBatchTarget.flushNext(vertexBatch->numberOfDraws()); 38 fBatchTarget.flushNext(vertexBatch->numberOfDraws());
39 fBatchTarget.postFlush(); 39 fBatchTarget.postFlush();
40 #endif 40 #endif
41 } 41 }
42 42
43 void GrImmediateDrawTarget::onCopySurface(GrSurface* dst,
44 GrSurface* src,
45 const SkIRect& srcRect,
46 const SkIPoint& dstPoint) {
47 this->getGpu()->copySurface(dst, src, srcRect, dstPoint);
48 }
49
50 void GrImmediateDrawTarget::onReset() {} 43 void GrImmediateDrawTarget::onReset() {}
51 44
52 void GrImmediateDrawTarget::onFlush() { 45 void GrImmediateDrawTarget::onFlush() {
53 ++fDrawID; 46 ++fDrawID;
54 } 47 }
OLDNEW
« no previous file with comments | « src/gpu/GrImmediateDrawTarget.h ('k') | src/gpu/batches/GrCopySurfaceBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698