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

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: rebse Created 6 years, 3 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 SkASSERT(glCaps().pathRenderingSupport()); 45 SkASSERT(glCaps().pathRenderingSupport());
46 return static_cast<GrGLPathRendering*>(pathRendering()); 46 return static_cast<GrGLPathRendering*>(pathRendering());
47 } 47 }
48 48
49 virtual void discard(GrRenderTarget*) SK_OVERRIDE; 49 virtual void discard(GrRenderTarget*) SK_OVERRIDE;
50 50
51 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL 51 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL
52 // state. 52 // state.
53 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 53 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
54 54
55 bool shouldUseFixedFunctionTexturing() const {
56 // At the moment non-fixed-function texturing is not implemented
57 // even though the GrGLPathRendering would support it. Thus just
58 // return the below.
59 return this->glCaps().pathRenderingSupport();
60 }
61
62 bool programUnitTest(int maxStages); 55 bool programUnitTest(int maxStages);
63 56
64 // GrGpu overrides 57 // GrGpu overrides
65 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 58 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
66 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 59 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
67 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 60 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
68 GrPixelConfig surfaceConfig ) const SK_OVERRIDE; 61 GrPixelConfig surfaceConfig ) const SK_OVERRIDE;
69 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE; 62 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE;
70 virtual bool readPixelsWillPayForYFlip( 63 virtual bool readPixelsWillPayForYFlip(
71 GrRenderTarget* renderTarget, 64 GrRenderTarget* renderTarget,
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 435
443 // we record what stencil format worked last time to hopefully exit early 436 // we record what stencil format worked last time to hopefully exit early
444 // from our loop that tries stencil formats and calls check fb status. 437 // from our loop that tries stencil formats and calls check fb status.
445 int fLastSuccessfulStencilFmtIdx; 438 int fLastSuccessfulStencilFmtIdx;
446 439
447 typedef GrGpu INHERITED; 440 typedef GrGpu INHERITED;
448 friend class GrGLPathRendering; // For accessing setTextureUnit. 441 friend class GrGLPathRendering; // For accessing setTextureUnit.
449 }; 442 };
450 443
451 #endif 444 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698