OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrXferProcessor_DEFINED | 8 #ifndef GrXferProcessor_DEFINED |
9 #define GrXferProcessor_DEFINED | 9 #define GrXferProcessor_DEFINED |
10 | 10 |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 return false; | 236 return false; |
237 } | 237 } |
238 return this->onIsEqual(that); | 238 return this->onIsEqual(that); |
239 } | 239 } |
240 | 240 |
241 protected: | 241 protected: |
242 GrXferProcessor(); | 242 GrXferProcessor(); |
243 GrXferProcessor(const DstTexture*, bool willReadDstColor, bool hasMixedSampl
es); | 243 GrXferProcessor(const DstTexture*, bool willReadDstColor, bool hasMixedSampl
es); |
244 | 244 |
245 private: | 245 private: |
| 246 void notifyRefCntIsZero() const final {} |
| 247 |
246 virtual OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, | 248 virtual OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, |
247 const GrProcOptInfo& coveragePOI, | 249 const GrProcOptInfo& coveragePOI, |
248 bool doesStencilWrite, | 250 bool doesStencilWrite, |
249 GrColor* overrideColor, | 251 GrColor* overrideColor, |
250 const GrCaps& caps) = 0; | 252 const GrCaps& caps) = 0; |
251 | 253 |
252 /** | 254 /** |
253 * Sets a unique key on the GrProcessorKeyBuilder that is directly associate
d with this xfer | 255 * Sets a unique key on the GrProcessorKeyBuilder that is directly associate
d with this xfer |
254 * processor's GL backend implementation. | 256 * processor's GL backend implementation. |
255 */ | 257 */ |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 enum { | 400 enum { |
399 kIllegalXPFClassID = 0, | 401 kIllegalXPFClassID = 0, |
400 }; | 402 }; |
401 static int32_t gCurrXPFClassID; | 403 static int32_t gCurrXPFClassID; |
402 | 404 |
403 typedef GrProgramElement INHERITED; | 405 typedef GrProgramElement INHERITED; |
404 }; | 406 }; |
405 | 407 |
406 #endif | 408 #endif |
407 | 409 |
OLD | NEW |