OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrContext.h" | 9 #include "GrContext.h" |
10 | 10 |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 void getInvariantOutputColor(GrInitInvariantOutput* out) const SK_OVERRIDE { | 842 void getInvariantOutputColor(GrInitInvariantOutput* out) const SK_OVERRIDE { |
843 // When this is called on a batch, there is only one geometry bundle | 843 // When this is called on a batch, there is only one geometry bundle |
844 if (this->hasColors()) { | 844 if (this->hasColors()) { |
845 out->setUnknownFourComponents(); | 845 out->setUnknownFourComponents(); |
846 } else { | 846 } else { |
847 out->setKnownFourComponents(fGeoData[0].fColor); | 847 out->setKnownFourComponents(fGeoData[0].fColor); |
848 } | 848 } |
849 } | 849 } |
850 | 850 |
851 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const SK_OVERRID
E { | 851 void getInvariantOutputCoverage(GrInitInvariantOutput* out) const SK_OVERRID
E { |
852 out->setUnknownSingleComponent(); | 852 out->setKnownSingleComponent(0xff); |
853 } | 853 } |
854 | 854 |
855 void initBatchTracker(const GrPipelineInfo& init) SK_OVERRIDE { | 855 void initBatchTracker(const GrPipelineInfo& init) SK_OVERRIDE { |
856 // Handle any color overrides | 856 // Handle any color overrides |
857 if (init.fColorIgnored) { | 857 if (init.fColorIgnored) { |
858 fGeoData[0].fColor = GrColor_ILLEGAL; | 858 fGeoData[0].fColor = GrColor_ILLEGAL; |
859 } else if (GrColor_ILLEGAL != init.fOverrideColor) { | 859 } else if (GrColor_ILLEGAL != init.fOverrideColor) { |
860 fGeoData[0].fColor = init.fOverrideColor; | 860 fGeoData[0].fColor = init.fOverrideColor; |
861 } | 861 } |
862 | 862 |
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1982 } | 1982 } |
1983 } | 1983 } |
1984 | 1984 |
1985 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { | 1985 void GrContext::removeGpuTraceMarker(const GrGpuTraceMarker* marker) { |
1986 fGpu->removeGpuTraceMarker(marker); | 1986 fGpu->removeGpuTraceMarker(marker); |
1987 if (fDrawBuffer) { | 1987 if (fDrawBuffer) { |
1988 fDrawBuffer->removeGpuTraceMarker(marker); | 1988 fDrawBuffer->removeGpuTraceMarker(marker); |
1989 } | 1989 } |
1990 } | 1990 } |
1991 | 1991 |
OLD | NEW |