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

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: address review comments (rebase to separated patches) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 SkASSERT(glCaps().pathRenderingSupport()); 43 SkASSERT(glCaps().pathRenderingSupport());
44 return static_cast<GrGLPathRendering*>(pathRendering()); 44 return static_cast<GrGLPathRendering*>(pathRendering());
45 } 45 }
46 46
47 virtual void discard(GrRenderTarget*) SK_OVERRIDE; 47 virtual void discard(GrRenderTarget*) SK_OVERRIDE;
48 48
49 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL 49 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL
50 // state. 50 // state.
51 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 51 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
52 52
53 bool shouldUseFixedFunctionTexturing() const {
54 // At the moment non-fixed-function texturing is not implemented
55 // even though the GrGLPathRendering would support it. Thus just
56 // return the below.
57 return this->glCaps().pathRenderingSupport();
58 }
59
60 bool programUnitTest(int maxStages); 53 bool programUnitTest(int maxStages);
61 54
62 // GrGpu overrides 55 // GrGpu overrides
63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 56 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
64 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 57 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
65 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 58 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
66 GrPixelConfig surfaceConfig ) const SK_OVERRIDE; 59 GrPixelConfig surfaceConfig ) const SK_OVERRIDE;
67 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE; 60 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE;
68 virtual bool readPixelsWillPayForYFlip( 61 virtual bool readPixelsWillPayForYFlip(
69 GrRenderTarget* renderTarget, 62 GrRenderTarget* renderTarget,
(...skipping 372 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