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

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

Issue 1131553002: Isolate GrBufferAllocPools inside GrBatchTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT 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/GrOvalRenderer.cpp ('k') | src/gpu/GrTargetCommands.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 2013 Google Inc. 2 * Copyright 2013 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 GrPrimitiveProcessor_DEFINED 8 #ifndef GrPrimitiveProcessor_DEFINED
9 #define GrPrimitiveProcessor_DEFINED 9 #define GrPrimitiveProcessor_DEFINED
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 SkASSERT(sizeof(T) <= kMaxSize); 59 SkASSERT(sizeof(T) <= kMaxSize);
60 return reinterpret_cast<T*>(fData.get()); 60 return reinterpret_cast<T*>(fData.get());
61 } 61 }
62 62
63 static const size_t kMaxSize = 32; 63 static const size_t kMaxSize = 32;
64 64
65 private: 65 private:
66 SkAlignedSStorage<kMaxSize> fData; 66 SkAlignedSStorage<kMaxSize> fData;
67 }; 67 };
68 68
69 class GrIndexBufferAllocPool;
70 class GrGLSLCaps; 69 class GrGLSLCaps;
71 class GrGLPrimitiveProcessor; 70 class GrGLPrimitiveProcessor;
72 class GrVertexBufferAllocPool;
73 71
74 struct GrInitInvariantOutput; 72 struct GrInitInvariantOutput;
75 73
76 /* 74 /*
77 * This struct allows the GrPipeline to communicate information about the pipeli ne. Most of this 75 * This struct allows the GrPipeline to communicate information about the pipeli ne. Most of this
78 * is overrides, but some of it is general information. Logically it should liv e in GrPipeline.h, 76 * is overrides, but some of it is general information. Logically it should liv e in GrPipeline.h,
79 * but this is problematic due to circular dependencies. 77 * but this is problematic due to circular dependencies.
80 */ 78 */
81 struct GrPipelineInfo { 79 struct GrPipelineInfo {
82 bool fColorIgnored; 80 bool fColorIgnored;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 virtual bool hasExplicitLocalCoords() const = 0; 220 virtual bool hasExplicitLocalCoords() const = 0;
223 221
224 const SkMatrix fViewMatrix; 222 const SkMatrix fViewMatrix;
225 SkMatrix fLocalMatrix; 223 SkMatrix fLocalMatrix;
226 bool fIsPathRendering; 224 bool fIsPathRendering;
227 225
228 typedef GrProcessor INHERITED; 226 typedef GrProcessor INHERITED;
229 }; 227 };
230 228
231 #endif 229 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrOvalRenderer.cpp ('k') | src/gpu/GrTargetCommands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698