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

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

Issue 685883003: Clip in grdrawtarget (Closed) Base URL: https://skia.googlesource.com/skia.git@drawtarget_on_clip_manager
Patch Set: add ccclip to ignore Created 6 years, 1 month 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/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGpuGL_program.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 SkASSERT(glCaps().pathRenderingSupport()); 47 SkASSERT(glCaps().pathRenderingSupport());
48 return static_cast<GrGLPathRendering*>(pathRendering()); 48 return static_cast<GrGLPathRendering*>(pathRendering());
49 } 49 }
50 50
51 virtual void discard(GrRenderTarget*) SK_OVERRIDE; 51 virtual void discard(GrRenderTarget*) SK_OVERRIDE;
52 52
53 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL 53 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL
54 // state. 54 // state.
55 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 55 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
56 56
57 bool programUnitTest(int maxStages);
58
59 // GrGpu overrides 57 // GrGpu overrides
60 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig, 58 virtual GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
61 GrPixelConfig surfaceConfig) const SK_OVERRIDE; 59 GrPixelConfig surfaceConfig) const SK_OVERRIDE;
62 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 60 virtual GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
63 GrPixelConfig surfaceConfig ) const SK_OVERRIDE; 61 GrPixelConfig surfaceConfig ) const SK_OVERRIDE;
64 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE; 62 virtual bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig ) const SK_OVERRIDE;
65 virtual bool readPixelsWillPayForYFlip( 63 virtual bool readPixelsWillPayForYFlip(
66 GrRenderTarget* renderTarget, 64 GrRenderTarget* renderTarget,
67 int left, int top, 65 int left, int top,
68 int width, int height, 66 int width, int height,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 450
453 // we record what stencil format worked last time to hopefully exit early 451 // we record what stencil format worked last time to hopefully exit early
454 // from our loop that tries stencil formats and calls check fb status. 452 // from our loop that tries stencil formats and calls check fb status.
455 int fLastSuccessfulStencilFmtIdx; 453 int fLastSuccessfulStencilFmtIdx;
456 454
457 typedef GrGpu INHERITED; 455 typedef GrGpu INHERITED;
458 friend class GrGLPathRendering; // For accessing setTextureUnit. 456 friend class GrGLPathRendering; // For accessing setTextureUnit.
459 }; 457 };
460 458
461 #endif 459 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrInOrderDrawBuffer.cpp ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698