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

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

Issue 859013002: Make stencil buffers uncached for uncached render target textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 void onResetContext(uint32_t resetBits) SK_OVERRIDE; 116 void onResetContext(uint32_t resetBits) SK_OVERRIDE;
117 117
118 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData, 118 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData,
119 size_t rowBytes) SK_OVERRIDE; 119 size_t rowBytes) SK_OVERRIDE;
120 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d, 120 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d,
121 const void* srcData) SK_OVERRIDE; 121 const void* srcData) SK_OVERRIDE;
122 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE; 122 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE;
123 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE; 123 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE;
124 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE; 124 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE;
125 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) SK_OVERRIDE; 125 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) SK_OVERRIDE;
126 bool createStencilBufferForRenderTarget(GrRenderTarget* rt, 126 bool createStencilBufferForRenderTarget(GrRenderTarget* rt, bool budgeted,
127 int width, int height) SK_OVERRIDE; 127 int width, int height) SK_OVERRIDE;
128 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) SK_OVERRIDE; 128 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) SK_OVERRIDE;
129 129
130 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 130 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
131 bool canIgnoreRect) SK_OVERRIDE; 131 bool canIgnoreRect) SK_OVERRIDE;
132 132
133 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) SK_OVERRIDE; 133 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) SK_OVERRIDE;
134 134
135 bool onReadPixels(GrRenderTarget* target, 135 bool onReadPixels(GrRenderTarget* target,
136 int left, int top, 136 int left, int top,
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 454
455 // we record what stencil format worked last time to hopefully exit early 455 // we record what stencil format worked last time to hopefully exit early
456 // from our loop that tries stencil formats and calls check fb status. 456 // from our loop that tries stencil formats and calls check fb status.
457 int fLastSuccessfulStencilFmtIdx; 457 int fLastSuccessfulStencilFmtIdx;
458 458
459 typedef GrGpu INHERITED; 459 typedef GrGpu INHERITED;
460 friend class GrGLPathRendering; // For accessing setTextureUnit. 460 friend class GrGLPathRendering; // For accessing setTextureUnit.
461 }; 461 };
462 462
463 #endif 463 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698