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

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

Issue 54403003: Fix few inconsistencies in handling fixed-function texture coordinate set generation (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address comments Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLProgram.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void setProjectionMatrix(const SkMatrix& matrix, 44 void setProjectionMatrix(const SkMatrix& matrix,
45 const SkISize& renderTargetSize, 45 const SkISize& renderTargetSize,
46 GrSurfaceOrigin renderTargetOrigin); 46 GrSurfaceOrigin renderTargetOrigin);
47 enum TexGenComponents { 47 enum TexGenComponents {
48 kS_TexGenComponents = 1, 48 kS_TexGenComponents = 1,
49 kST_TexGenComponents = 2, 49 kST_TexGenComponents = 2,
50 kSTR_TexGenComponents = 3 50 kSTR_TexGenComponents = 3
51 }; 51 };
52 void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficien ts); 52 void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficien ts);
53 void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix); 53 void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix);
54 void disableUnusedTexGen(int numUsedTexCoordSets); 54 void flushTexGenSettings(int numUsedTexCoordSets);
55 bool shouldUseFixedFunctionTexturing() const { 55 bool shouldUseFixedFunctionTexturing() const {
56 return this->glCaps().fixedFunctionSupport() && 56 return this->glCaps().fixedFunctionSupport() &&
57 this->glCaps().pathRenderingSupport(); 57 this->glCaps().pathRenderingSupport();
58 } 58 }
59 59
60 bool programUnitTest(int maxStages); 60 bool programUnitTest(int maxStages);
61 61
62 // GrGpu overrides 62 // GrGpu overrides
63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
64 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 64 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 ///@} 450 ///@}
451 451
452 // we record what stencil format worked last time to hopefully exit early 452 // we record what stencil format worked last time to hopefully exit early
453 // from our loop that tries stencil formats and calls check fb status. 453 // from our loop that tries stencil formats and calls check fb status.
454 int fLastSuccessfulStencilFmtIdx; 454 int fLastSuccessfulStencilFmtIdx;
455 455
456 typedef GrGpu INHERITED; 456 typedef GrGpu INHERITED;
457 }; 457 };
458 458
459 #endif 459 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698