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

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

Issue 1092403002: Stop closing batch prematurely (Closed) Base URL: https://skia.googlesource.com/skia.git@atdfopt3
Patch Set: fix nvpr Created 5 years, 7 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrTargetCommands.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 GrTargetCommands_DEFINED 8 #ifndef GrTargetCommands_DEFINED
9 #define GrTargetCommands_DEFINED 9 #define GrTargetCommands_DEFINED
10 10
11 #include "GrBatch.h" 11 #include "GrBatch.h"
12 #include "GrBatchTarget.h" 12 #include "GrBatchTarget.h"
13 #include "GrDrawTarget.h" 13 #include "GrDrawTarget.h"
14 #include "GrGpu.h" 14 #include "GrGpu.h"
15 #include "GrPath.h" 15 #include "GrPath.h"
16 #include "GrPendingProgramElement.h" 16 #include "GrPendingProgramElement.h"
17 #include "GrRenderTarget.h" 17 #include "GrRenderTarget.h"
18 #include "GrTRecorder.h" 18 #include "GrTRecorder.h"
19 #include "SkRect.h" 19 #include "SkRect.h"
20 #include "SkTypes.h" 20 #include "SkTypes.h"
21 21
22 // This is just to get a flag
23 // TODO remove this when batch is everywhere
24 #include "GrTextContext.h"
25 #ifdef USE_BITMAP_TEXTBLOBS
26 #define CLOSE_BATCH
27 #else
28 #define CLOSE_BATCH this->closeBatch();
29 #endif
30
22 class GrInOrderDrawBuffer; 31 class GrInOrderDrawBuffer;
23 class GrVertexBufferAllocPool; 32 class GrVertexBufferAllocPool;
24 class GrIndexBufferAllocPool; 33 class GrIndexBufferAllocPool;
25 34
26 class GrTargetCommands : ::SkNoncopyable { 35 class GrTargetCommands : ::SkNoncopyable {
27 struct SetState; 36 struct SetState;
28 37
29 public: 38 public:
30 GrTargetCommands(GrGpu* gpu, 39 GrTargetCommands(GrGpu* gpu,
31 GrVertexBufferAllocPool* vertexPool, 40 GrVertexBufferAllocPool* vertexPool,
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // TODO hack until batch is everywhere 315 // TODO hack until batch is everywhere
307 GrTargetCommands::DrawBatch* fDrawBatch; 316 GrTargetCommands::DrawBatch* fDrawBatch;
308 317
309 // This will go away when everything uses batch. However, in the short ter m anything which 318 // This will go away when everything uses batch. However, in the short ter m anything which
310 // might be put into the GrInOrderDrawBuffer needs to make sure it closes t he last batch 319 // might be put into the GrInOrderDrawBuffer needs to make sure it closes t he last batch
311 void closeBatch(); 320 void closeBatch();
312 }; 321 };
313 322
314 #endif 323 #endif
315 324
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698