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

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

Issue 211683002: Add discard API to SkCanvas, plumb it to glDiscardFramebuffer() (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: move to ToT Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('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 22 matching lines...) Expand all
33 33
34 const GrGLContext& glContext() const { return fGLContext; } 34 const GrGLContext& glContext() const { return fGLContext; }
35 35
36 const GrGLInterface* glInterface() const { return fGLContext.interface(); } 36 const GrGLInterface* glInterface() const { return fGLContext.interface(); }
37 const GrGLContextInfo& ctxInfo() const { return fGLContext; } 37 const GrGLContextInfo& ctxInfo() const { return fGLContext; }
38 GrGLStandard glStandard() const { return fGLContext.standard(); } 38 GrGLStandard glStandard() const { return fGLContext.standard(); }
39 GrGLVersion glVersion() const { return fGLContext.version(); } 39 GrGLVersion glVersion() const { return fGLContext.version(); }
40 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration() ; } 40 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration() ; }
41 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } 41 const GrGLCaps& glCaps() const { return *fGLContext.caps(); }
42 42
43 virtual void discard(GrRenderTarget*) SK_OVERRIDE;
44
43 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat e. 45 // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL stat e.
44 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 46 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
45 void setProjectionMatrix(const SkMatrix& matrix, 47 void setProjectionMatrix(const SkMatrix& matrix,
46 const SkISize& renderTargetSize, 48 const SkISize& renderTargetSize,
47 GrSurfaceOrigin renderTargetOrigin); 49 GrSurfaceOrigin renderTargetOrigin);
48 enum TexGenComponents { 50 enum TexGenComponents {
49 kS_TexGenComponents = 1, 51 kS_TexGenComponents = 1,
50 kST_TexGenComponents = 2, 52 kST_TexGenComponents = 2,
51 kSTR_TexGenComponents = 3 53 kSTR_TexGenComponents = 3
52 }; 54 };
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 ///@} 456 ///@}
455 457
456 // we record what stencil format worked last time to hopefully exit early 458 // we record what stencil format worked last time to hopefully exit early
457 // from our loop that tries stencil formats and calls check fb status. 459 // from our loop that tries stencil formats and calls check fb status.
458 int fLastSuccessfulStencilFmtIdx; 460 int fLastSuccessfulStencilFmtIdx;
459 461
460 typedef GrGpu INHERITED; 462 typedef GrGpu INHERITED;
461 }; 463 };
462 464
463 #endif 465 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLDefines.h ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698