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 1083133002: Rename GrStencilBuffer to GrStencilAttachment (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Align data member Created 5 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
« no previous file with comments | « src/gpu/gl/GrGLCaps.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
11 #include "GrGLContext.h" 11 #include "GrGLContext.h"
12 #include "GrGLIRect.h" 12 #include "GrGLIRect.h"
13 #include "GrGLIndexBuffer.h" 13 #include "GrGLIndexBuffer.h"
14 #include "GrGLPathRendering.h" 14 #include "GrGLPathRendering.h"
15 #include "GrGLProgram.h" 15 #include "GrGLProgram.h"
16 #include "GrGLRenderTarget.h" 16 #include "GrGLRenderTarget.h"
17 #include "GrGLStencilBuffer.h" 17 #include "GrGLStencilAttachment.h"
18 #include "GrGLTexture.h" 18 #include "GrGLTexture.h"
19 #include "GrGLVertexArray.h" 19 #include "GrGLVertexArray.h"
20 #include "GrGLVertexBuffer.h" 20 #include "GrGLVertexBuffer.h"
21 #include "GrGpu.h" 21 #include "GrGpu.h"
22 #include "GrPipelineBuilder.h" 22 #include "GrPipelineBuilder.h"
23 #include "GrXferProcessor.h" 23 #include "GrXferProcessor.h"
24 #include "SkTypes.h" 24 #include "SkTypes.h"
25 25
26 class GrPipeline; 26 class GrPipeline;
27 27
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 void onResetContext(uint32_t resetBits) override; 115 void onResetContext(uint32_t resetBits) override;
116 116
117 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData, 117 GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const v oid* srcData,
118 size_t rowBytes) override; 118 size_t rowBytes) override;
119 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d, 119 GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgete d,
120 const void* srcData) override; 120 const void* srcData) override;
121 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override; 121 GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override;
122 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override; 122 GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override;
123 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override; 123 GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override;
124 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) override; 124 GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) override;
125 bool createStencilBufferForRenderTarget(GrRenderTarget* rt, int width, int h eight) override; 125 bool createStencilAttachmentForRenderTarget(GrRenderTarget* rt, int width, i nt height) override;
126 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) override; 126 bool attachStencilAttachmentToRenderTarget(GrStencilAttachment* sb,
127 GrRenderTarget* rt) override;
127 128
128 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 129 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
129 bool canIgnoreRect) override; 130 bool canIgnoreRect) override;
130 131
131 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 132 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
132 133
133 bool onReadPixels(GrRenderTarget* target, 134 bool onReadPixels(GrRenderTarget* target,
134 int left, int top, 135 int left, int top,
135 int width, int height, 136 int width, int height,
136 GrPixelConfig, 137 GrPixelConfig,
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 464
464 // we record what stencil format worked last time to hopefully exit early 465 // we record what stencil format worked last time to hopefully exit early
465 // from our loop that tries stencil formats and calls check fb status. 466 // from our loop that tries stencil formats and calls check fb status.
466 int fLastSuccessfulStencilFmtIdx; 467 int fLastSuccessfulStencilFmtIdx;
467 468
468 typedef GrGpu INHERITED; 469 typedef GrGpu INHERITED;
469 friend class GrGLPathRendering; // For accessing setTextureUnit. 470 friend class GrGLPathRendering; // For accessing setTextureUnit.
470 }; 471 };
471 472
472 #endif 473 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698