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

Side by Side Diff: src/gpu/gl/GrGLProgram.h

Issue 820783005: More changes to bring together path / geo procs (Closed) Base URL: https://skia.googlesource.com/skia.git@lc1
Patch Set: dm fix Created 5 years, 11 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/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('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 2011 Google Inc. 2 * Copyright 2011 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 8
9 #ifndef GrGLProgram_DEFINED 9 #ifndef GrGLProgram_DEFINED
10 #define GrGLProgram_DEFINED 10 #define GrGLProgram_DEFINED
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 */ 46 */
47 void abandon(); 47 void abandon();
48 48
49 const GrProgramDesc& getDesc() { return fDesc; } 49 const GrProgramDesc& getDesc() { return fDesc; }
50 50
51 /** 51 /**
52 * Gets the GL program ID for this program. 52 * Gets the GL program ID for this program.
53 */ 53 */
54 GrGLuint programID() const { return fProgramID; } 54 GrGLuint programID() const { return fProgramID; }
55 55
56 /*
57 * The base class always has a vertex shader, only the NVPR variants may omi t a vertex shader
58 */
59 virtual bool hasVertexShader() const { return true; }
60
61 /** 56 /**
62 * We use the RT's size and origin to adjust from Skia device space to OpenG L normalized device 57 * We use the RT's size and origin to adjust from Skia device space to OpenG L normalized device
63 * space and to make device space positions have the correct origin for proc essors that require 58 * space and to make device space positions have the correct origin for proc essors that require
64 * them. 59 * them.
65 */ 60 */
66 struct RenderTargetState { 61 struct RenderTargetState {
67 SkISize fRenderTargetSize; 62 SkISize fRenderTargetSize;
68 GrSurfaceOrigin fRenderTargetOrigin; 63 GrSurfaceOrigin fRenderTargetOrigin;
69 64
70 RenderTargetState() { this->invalidate(); } 65 RenderTargetState() { this->invalidate(); }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 int index, 181 int index,
187 GrGLInstalledFragProc*) SK_OVERRIDE; 182 GrGLInstalledFragProc*) SK_OVERRIDE;
188 virtual void onSetRenderTargetState(const GrOptDrawState&); 183 virtual void onSetRenderTargetState(const GrOptDrawState&);
189 184
190 friend class GrGLNvprProgramBuilder; 185 friend class GrGLNvprProgramBuilder;
191 186
192 typedef GrGLProgram INHERITED; 187 typedef GrGLProgram INHERITED;
193 }; 188 };
194 189
195 #endif 190 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698