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/GrGLGpu.h

Issue 2093943002: Have gpu createTestingOlyBackendTexture know if it is a render target or not (Closed) Base URL: https://skia.googlesource.com/skia.git@moreUnitTests
Patch Set: Have gpu createTestingOlyBackendTexture know if it is a render target or not Created 4 years, 6 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/GrGpu.h ('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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 void invalidateBoundRenderTarget() { 127 void invalidateBoundRenderTarget() {
128 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID; 128 fHWBoundRenderTargetUniqueID = SK_InvalidUniqueID;
129 } 129 }
130 130
131 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt, 131 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget* rt,
132 int width, 132 int width,
133 int height) over ride; 133 int height) over ride;
134 134
135 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 135 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
136 GrPixelConfig config) overri de; 136 GrPixelConfig config,
137 bool isRenderTarget = false) override;
137 bool isTestingOnlyBackendTexture(GrBackendObject) const override; 138 bool isTestingOnlyBackendTexture(GrBackendObject) const override;
138 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o verride; 139 void deleteTestingOnlyBackendTexture(GrBackendObject, bool abandonTexture) o verride;
139 140
140 void resetShaderCacheForTesting() const override; 141 void resetShaderCacheForTesting() const override;
141 142
142 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override; 143 void drawDebugWireRect(GrRenderTarget*, const SkIRect&, GrColor) override;
143 144
144 void finishDrawTarget() override; 145 void finishDrawTarget() override;
145 146
146 private: 147 private:
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 bool fHWPLSEnabled; 595 bool fHWPLSEnabled;
595 bool fPLSHasBeenUsed; 596 bool fPLSHasBeenUsed;
596 597
597 float fHWMinSampleShading; 598 float fHWMinSampleShading;
598 599
599 typedef GrGpu INHERITED; 600 typedef GrGpu INHERITED;
600 friend class GrGLPathRendering; // For accessing setTextureUnit. 601 friend class GrGLPathRendering; // For accessing setTextureUnit.
601 }; 602 };
602 603
603 #endif 604 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGpu.h ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698