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

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: trivial clean up 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
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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // GL program-related state 274 // GL program-related state
275 ProgramCache* fProgramCache; 275 ProgramCache* fProgramCache;
276 SkAutoTUnref<GrGLProgram> fCurrentProgram; 276 SkAutoTUnref<GrGLProgram> fCurrentProgram;
277 277
278 /////////////////////////////////////////////////////////////////////////// 278 ///////////////////////////////////////////////////////////////////////////
279 ///@name Caching of GL State 279 ///@name Caching of GL State
280 ///@{ 280 ///@{
281 int fHWActiveTextureUnitIdx; 281 int fHWActiveTextureUnitIdx;
282 GrGLuint fHWProgramID; 282 GrGLuint fHWProgramID;
283 283
284 GrGLProgram::SharedGLState fSharedGLProgramState;
285
286 enum TriState { 284 enum TriState {
287 kNo_TriState, 285 kNo_TriState,
288 kYes_TriState, 286 kYes_TriState,
289 kUnknown_TriState 287 kUnknown_TriState
290 }; 288 };
291 289
292 // last scissor / viewport scissor state seen by the GL. 290 // last scissor / viewport scissor state seen by the GL.
293 struct { 291 struct {
294 TriState fEnabled; 292 TriState fEnabled;
295 GrGLIRect fRect; 293 GrGLIRect fRect;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 438
441 // we record what stencil format worked last time to hopefully exit early 439 // we record what stencil format worked last time to hopefully exit early
442 // from our loop that tries stencil formats and calls check fb status. 440 // from our loop that tries stencil formats and calls check fb status.
443 int fLastSuccessfulStencilFmtIdx; 441 int fLastSuccessfulStencilFmtIdx;
444 442
445 typedef GrGpu INHERITED; 443 typedef GrGpu INHERITED;
446 friend class GrGLPathRendering; // For accessing setTextureUnit. 444 friend class GrGLPathRendering; // For accessing setTextureUnit.
447 }; 445 };
448 446
449 #endif 447 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698