OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |