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

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

Issue 450283002: Simplify GrGLPathRendering interface (Closed) Base URL: https://skia.googlesource.com/skia.git@02-path-state-to-pathrendering-class
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
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.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 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 { 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.
54 return this->glCaps().pathRenderingSupport(); 57 return this->glCaps().pathRenderingSupport();
55 } 58 }
56 59
57 bool programUnitTest(int maxStages); 60 bool programUnitTest(int maxStages);
58 61
59 // GrGpu overrides 62 // GrGpu overrides
60 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 63 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
61 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 64 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
62 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 65 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
63 GrPixelConfig surfaceConfig ) const SK_OVERRIDE; 66 GrPixelConfig surfaceConfig ) const SK_OVERRIDE;
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 442
440 // we record what stencil format worked last time to hopefully exit early 443 // we record what stencil format worked last time to hopefully exit early
441 // from our loop that tries stencil formats and calls check fb status. 444 // from our loop that tries stencil formats and calls check fb status.
442 int fLastSuccessfulStencilFmtIdx; 445 int fLastSuccessfulStencilFmtIdx;
443 446
444 typedef GrGpu INHERITED; 447 typedef GrGpu INHERITED;
445 friend class GrGLPathRendering; // For accessing setTextureUnit. 448 friend class GrGLPathRendering; // For accessing setTextureUnit.
446 }; 449 };
447 450
448 #endif 451 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLPathRendering.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698