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

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

Issue 1296483002: Split GrDrawBatch and GrVertexBatch into their own files (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add new files to git 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/GrTargetCommands.h ('k') | src/gpu/GrTessellatingPathRenderer.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 #include "GrTargetCommands.h" 8 #include "GrTargetCommands.h"
9 9
10 #include "GrBufferedDrawTarget.h" 10 #include "GrBufferedDrawTarget.h"
11 11
12 #include "batches/GrDrawBatch.h"
13 #include "batches/GrVertexBatch.h"
14
12 GrBATCH_SPEW(int32_t GrTargetCommands::Cmd::gUniqueID = 0;) 15 GrBATCH_SPEW(int32_t GrTargetCommands::Cmd::gUniqueID = 0;)
13 16
14 void GrTargetCommands::reset() { 17 void GrTargetCommands::reset() {
15 fCmdBuffer.reset(); 18 fCmdBuffer.reset();
16 fBatchTarget.reset(); 19 fBatchTarget.reset();
17 } 20 }
18 21
19 void GrTargetCommands::flush(GrBufferedDrawTarget* bufferedDrawTarget) { 22 void GrTargetCommands::flush(GrBufferedDrawTarget* bufferedDrawTarget) {
20 GrBATCH_INFO("Flushing\n"); 23 GrBATCH_INFO("Flushing\n");
21 if (fCmdBuffer.empty()) { 24 if (fCmdBuffer.empty()) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 97 }
95 } 98 }
96 99
97 void GrTargetCommands::ClearStencilClip::execute(GrGpu* gpu) { 100 void GrTargetCommands::ClearStencilClip::execute(GrGpu* gpu) {
98 gpu->clearStencilClip(fRect, fInsideClip, this->renderTarget()); 101 gpu->clearStencilClip(fRect, fInsideClip, this->renderTarget());
99 } 102 }
100 103
101 void GrTargetCommands::CopySurface::execute(GrGpu* gpu) { 104 void GrTargetCommands::CopySurface::execute(GrGpu* gpu) {
102 gpu->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint); 105 gpu->copySurface(this->dst(), this->src(), fSrcRect, fDstPoint);
103 } 106 }
OLDNEW
« no previous file with comments | « src/gpu/GrTargetCommands.h ('k') | src/gpu/GrTessellatingPathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698