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

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

Issue 678073005: Patch to remove constant attributes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month 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/GrGLProgramDesc.cpp ('k') | src/gpu/gl/GrGpuGL.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 #ifndef GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // GL program-related state 281 // GL program-related state
282 ProgramCache* fProgramCache; 282 ProgramCache* fProgramCache;
283 SkAutoTUnref<GrGLProgram> fCurrentProgram; 283 SkAutoTUnref<GrGLProgram> fCurrentProgram;
284 284
285 /////////////////////////////////////////////////////////////////////////// 285 ///////////////////////////////////////////////////////////////////////////
286 ///@name Caching of GL State 286 ///@name Caching of GL State
287 ///@{ 287 ///@{
288 int fHWActiveTextureUnitIdx; 288 int fHWActiveTextureUnitIdx;
289 GrGLuint fHWProgramID; 289 GrGLuint fHWProgramID;
290 290
291 GrGLProgram::SharedGLState fSharedGLProgramState;
292
293 enum TriState { 291 enum TriState {
294 kNo_TriState, 292 kNo_TriState,
295 kYes_TriState, 293 kYes_TriState,
296 kUnknown_TriState 294 kUnknown_TriState
297 }; 295 };
298 296
299 // last scissor / viewport scissor state seen by the GL. 297 // last scissor / viewport scissor state seen by the GL.
300 struct { 298 struct {
301 TriState fEnabled; 299 TriState fEnabled;
302 GrGLIRect fRect; 300 GrGLIRect fRect;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 445
448 // we record what stencil format worked last time to hopefully exit early 446 // we record what stencil format worked last time to hopefully exit early
449 // from our loop that tries stencil formats and calls check fb status. 447 // from our loop that tries stencil formats and calls check fb status.
450 int fLastSuccessfulStencilFmtIdx; 448 int fLastSuccessfulStencilFmtIdx;
451 449
452 typedef GrGpu INHERITED; 450 typedef GrGpu INHERITED;
453 friend class GrGLPathRendering; // For accessing setTextureUnit. 451 friend class GrGLPathRendering; // For accessing setTextureUnit.
454 }; 452 };
455 453
456 #endif 454 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgramDesc.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698