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/gl/GrGpuGL.h

Issue 367643004: Implement NVPR on GLES (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-program-fragment
Patch Set: rebase Created 6 years, 4 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const SkISize& renderTargetSize, 54 const SkISize& renderTargetSize,
55 GrSurfaceOrigin renderTargetOrigin); 55 GrSurfaceOrigin renderTargetOrigin);
56 enum PathTexGenComponents { 56 enum PathTexGenComponents {
57 kS_PathTexGenComponents = 1, 57 kS_PathTexGenComponents = 1,
58 kST_PathTexGenComponents = 2, 58 kST_PathTexGenComponents = 2,
59 kSTR_PathTexGenComponents = 3 59 kSTR_PathTexGenComponents = 3
60 }; 60 };
61 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co efficients); 61 void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* co efficients);
62 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat rix); 62 void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& mat rix);
63 void flushPathTexGenSettings(int numUsedTexCoordSets); 63 void flushPathTexGenSettings(int numUsedTexCoordSets);
64 bool shouldUseFixedFunctionTexturing() const {
65 return this->glCaps().pathRenderingSupport();
66 }
67 64
68 bool programUnitTest(int maxStages); 65 bool programUnitTest(int maxStages);
69 66
70 // GrGpu overrides 67 // GrGpu overrides
71 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 68 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
72 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 69 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
73 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 70 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
74 GrPixelConfig surfaceConfig ) const SK_OVERRIDE; 71 GrPixelConfig surfaceConfig ) const SK_OVERRIDE;
75 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE; 72 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE;
76 virtual bool readPixelsWillPayForYFlip( 73 virtual bool readPixelsWillPayForYFlip(
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // we record what stencil format worked last time to hopefully exit early 466 // we record what stencil format worked last time to hopefully exit early
470 // from our loop that tries stencil formats and calls check fb status. 467 // from our loop that tries stencil formats and calls check fb status.
471 int fLastSuccessfulStencilFmtIdx; 468 int fLastSuccessfulStencilFmtIdx;
472 469
473 SkAutoTDelete<GrGLPathRendering> fPathRendering; 470 SkAutoTDelete<GrGLPathRendering> fPathRendering;
474 471
475 typedef GrGpu INHERITED; 472 typedef GrGpu INHERITED;
476 }; 473 };
477 474
478 #endif 475 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698