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/GrGeometryProcessor.h

Issue 1232463006: Fix up -Winconsistent-missing-override (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: llvm_coverage_build Created 5 years, 5 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/core/SkRWBuffer.cpp ('k') | src/gpu/gl/GrGLPathProgram.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 GrGeometryProcessor_DEFINED 8 #ifndef GrGeometryProcessor_DEFINED
9 #define GrGeometryProcessor_DEFINED 9 #define GrGeometryProcessor_DEFINED
10 10
11 #include "GrPrimitiveProcessor.h" 11 #include "GrPrimitiveProcessor.h"
12 12
13 /** 13 /**
14 * A GrGeometryProcessor is a flexible method for rendering a primitive. The Gr GeometryProcessor 14 * A GrGeometryProcessor is a flexible method for rendering a primitive. The Gr GeometryProcessor
15 * has complete control over vertex attributes and uniforms(aside from the rende r target) but it 15 * has complete control over vertex attributes and uniforms(aside from the rende r target) but it
16 * must obey the same contract as any GrPrimitiveProcessor, specifically it must emit a color and 16 * must obey the same contract as any GrPrimitiveProcessor, specifically it must emit a color and
17 * coverage into the fragment shader. Where this color and coverage come from i s completely the 17 * coverage into the fragment shader. Where this color and coverage come from i s completely the
18 * responsibility of the GrGeometryProcessor. 18 * responsibility of the GrGeometryProcessor.
19 */ 19 */
20 class GrGeometryProcessor : public GrPrimitiveProcessor { 20 class GrGeometryProcessor : public GrPrimitiveProcessor {
21 public: 21 public:
22 GrGeometryProcessor() 22 GrGeometryProcessor()
23 : INHERITED(false) 23 : INHERITED(false)
24 , fWillUseGeoShader(false) 24 , fWillUseGeoShader(false)
25 , fHasLocalCoords(false) {} 25 , fHasLocalCoords(false) {}
26 26
27 bool willUseGeoShader() const { return fWillUseGeoShader; } 27 bool willUseGeoShader() const override { return fWillUseGeoShader; }
28 28
29 // TODO delete when paths are in batch 29 // TODO delete when paths are in batch
30 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const override {} 30 void initBatchTracker(GrBatchTracker*, const GrPipelineInfo&) const override {}
31 31
32 // TODO delete this when paths are in batch 32 // TODO delete this when paths are in batch
33 bool canMakeEqual(const GrBatchTracker& mine, 33 bool canMakeEqual(const GrBatchTracker& mine,
34 const GrPrimitiveProcessor& that, 34 const GrPrimitiveProcessor& that,
35 const GrBatchTracker& theirs) const override { 35 const GrBatchTracker& theirs) const override {
36 SkFAIL("Unsupported\n"); 36 SkFAIL("Unsupported\n");
37 return false; 37 return false;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 private: 70 private:
71 bool hasExplicitLocalCoords() const override { return fHasLocalCoords; } 71 bool hasExplicitLocalCoords() const override { return fHasLocalCoords; }
72 72
73 bool fWillUseGeoShader; 73 bool fWillUseGeoShader;
74 bool fHasLocalCoords; 74 bool fHasLocalCoords;
75 75
76 typedef GrPrimitiveProcessor INHERITED; 76 typedef GrPrimitiveProcessor INHERITED;
77 }; 77 };
78 78
79 #endif 79 #endif
OLDNEW
« no previous file with comments | « src/core/SkRWBuffer.cpp ('k') | src/gpu/gl/GrGLPathProgram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698