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

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: line formatting 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
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 createStencilBufferForRenderTarget(GrRenderTarget* rt, int width, int h eight) override;
126 bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) override; 126 bool attachStencilBufferToRenderTarget(GrStencilAttachment* sb, GrRenderTarg et* rt) override;
127 127
128 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color, 128 void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
129 bool canIgnoreRect) override; 129 bool canIgnoreRect) override;
130 130
131 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override; 131 void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideCli p) override;
132 132
133 bool onReadPixels(GrRenderTarget* target, 133 bool onReadPixels(GrRenderTarget* target,
134 int left, int top, 134 int left, int top,
135 int width, int height, 135 int width, int height,
136 GrPixelConfig, 136 GrPixelConfig,
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 // we record what stencil format worked last time to hopefully exit early 464 // 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. 465 // from our loop that tries stencil formats and calls check fb status.
466 int fLastSuccessfulStencilFmtIdx; 466 int fLastSuccessfulStencilFmtIdx;
467 467
468 typedef GrGpu INHERITED; 468 typedef GrGpu INHERITED;
469 friend class GrGLPathRendering; // For accessing setTextureUnit. 469 friend class GrGLPathRendering; // For accessing setTextureUnit.
470 }; 470 };
471 471
472 #endif 472 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698