OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 /* | 50 /* |
51 * This class allows the GrPipeline to communicate information about the pipelin
e to a | 51 * This class allows the GrPipeline to communicate information about the pipelin
e to a |
52 * GrBatch which should be forwarded to the GrPrimitiveProcessor(s) created by t
he batch. | 52 * GrBatch which should be forwarded to the GrPrimitiveProcessor(s) created by t
he batch. |
53 * These are not properly part of the pipeline because they assume the specific
inputs | 53 * These are not properly part of the pipeline because they assume the specific
inputs |
54 * that the batch provided when it created the pipeline. Identical pipelines may
be | 54 * that the batch provided when it created the pipeline. Identical pipelines may
be |
55 * created by different batches with different input assumptions and therefore d
ifferent | 55 * created by different batches with different input assumptions and therefore d
ifferent |
56 * computed optimizations. It is the batch-specific optimizations that allow the
pipelines | 56 * computed optimizations. It is the batch-specific optimizations that allow the
pipelines |
57 * to be equal. | 57 * to be equal. |
58 */ | 58 */ |
59 class GrPipelineOptimizations { | 59 class GrXPOverridesForBatch { |
60 public: | 60 public: |
61 /** Does the pipeline require the GrPrimitiveProcessor's color? */ | 61 /** Does the pipeline require the GrPrimitiveProcessor's color? */ |
62 bool readsColor() const { return SkToBool(kReadsColor_Flag & fFlags); } | 62 bool readsColor() const { return SkToBool(kReadsColor_Flag & fFlags); } |
63 | 63 |
64 /** Does the pipeline require the GrPrimitiveProcessor's coverage? */ | 64 /** Does the pipeline require the GrPrimitiveProcessor's coverage? */ |
65 bool readsCoverage() const { return | 65 bool readsCoverage() const { return |
66 SkToBool(kReadsCoverage_Flag & fFlags); } | 66 SkToBool(kReadsCoverage_Flag & fFlags); } |
67 | 67 |
68 /** Does the pipeline require access to (implicit or explicit) local coordin
ates? */ | 68 /** Does the pipeline require access to (implicit or explicit) local coordin
ates? */ |
69 bool readsLocalCoords() const { | 69 bool readsLocalCoords() const { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 private: | 220 private: |
221 void notifyRefCntIsZero() const final {}; | 221 void notifyRefCntIsZero() const final {}; |
222 virtual bool hasExplicitLocalCoords() const = 0; | 222 virtual bool hasExplicitLocalCoords() const = 0; |
223 | 223 |
224 bool fIsPathRendering; | 224 bool fIsPathRendering; |
225 | 225 |
226 typedef GrProcessor INHERITED; | 226 typedef GrProcessor INHERITED; |
227 }; | 227 }; |
228 | 228 |
229 #endif | 229 #endif |
OLD | NEW |