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

Side by Side Diff: src/gpu/GrContext.cpp

Issue 966773004: nexus 9 fix (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | 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 /* 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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698