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

Side by Side Diff: src/gpu/batches/GrDiscardBatch.h

Issue 2078483002: Start using GrGpuCommandBuffer in GrDrawTarget. (Closed) Base URL: https://skia.googlesource.com/skia.git@memoryWAR
Patch Set: remove errant lines Created 4 years, 6 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/batches/GrCopySurfaceBatch.h ('k') | src/gpu/batches/GrVertexBatch.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 * 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 #ifndef GrDiscardBatch_DEFINED 8 #ifndef GrDiscardBatch_DEFINED
9 #define GrDiscardBatch_DEFINED 9 #define GrDiscardBatch_DEFINED
10 10
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 36
37 private: 37 private:
38 bool onCombineIfPossible(GrBatch* that, const GrCaps& caps) override { 38 bool onCombineIfPossible(GrBatch* that, const GrCaps& caps) override {
39 return fRenderTarget == that->cast<GrDiscardBatch>()->fRenderTarget; 39 return fRenderTarget == that->cast<GrDiscardBatch>()->fRenderTarget;
40 } 40 }
41 41
42 void onPrepare(GrBatchFlushState*) override {} 42 void onPrepare(GrBatchFlushState*) override {}
43 43
44 void onDraw(GrBatchFlushState* state) override { 44 void onDraw(GrBatchFlushState* state) override {
45 state->gpu()->discard(fRenderTarget.get()); 45 state->commandBuffer()->discard(fRenderTarget.get());
46 } 46 }
47 47
48 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget; 48 GrPendingIOResource<GrRenderTarget, kWrite_GrIOType> fRenderTarget;
49 49
50 typedef GrBatch INHERITED; 50 typedef GrBatch INHERITED;
51 }; 51 };
52 52
53 #endif 53 #endif
OLDNEW
« no previous file with comments | « src/gpu/batches/GrCopySurfaceBatch.h ('k') | src/gpu/batches/GrVertexBatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698