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

Side by Side Diff: include/gpu/GrContext.h

Issue 880983008: More cleanup around GrContext, textures, and SkGr.cpp (Closed) Base URL: https://skia.googlesource.com/skia.git@npot_out
Patch Set: rebase Created 5 years, 10 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 | « no previous file | src/gpu/GrContext.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 2010 Google Inc. 2 * Copyright 2010 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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 * tiling non-power-of-two textures on APIs that don't support this (e.g. 267 * tiling non-power-of-two textures on APIs that don't support this (e.g.
268 * unextended GLES2). NPOT scratch textures are not tilable on such APIs. 268 * unextended GLES2). NPOT scratch textures are not tilable on such APIs.
269 * 269 *
270 * internalFlag is a temporary workaround until changes in the internal 270 * internalFlag is a temporary workaround until changes in the internal
271 * architecture are complete. Use the default value. 271 * architecture are complete. Use the default value.
272 */ 272 */
273 GrTexture* refScratchTexture(const GrSurfaceDesc&, ScratchTexMatch match, 273 GrTexture* refScratchTexture(const GrSurfaceDesc&, ScratchTexMatch match,
274 bool internalFlag = false); 274 bool internalFlag = false);
275 275
276 /** 276 /**
277 * Returns true if index8 textures are supported. 277 * Can the provided configuration act as a texture?
278 */ 278 */
279 bool supportsIndex8PixelConfig() const; 279 bool isConfigTexturable(GrPixelConfig) const;
280
281 /**
282 * Can non-power-of-two textures be used with tile modes other than clamp?
283 */
284 bool npotTextureTileSupport() const;
280 285
281 /** 286 /**
282 * Return the max width or height of a texture supported by the current GPU . 287 * Return the max width or height of a texture supported by the current GPU .
283 */ 288 */
284 int getMaxTextureSize() const; 289 int getMaxTextureSize() const;
285 290
286 /** 291 /**
287 * Temporarily override the true max texture size. Note: an override 292 * Temporarily override the true max texture size. Note: an override
288 * larger then the true max texture size will have no effect. 293 * larger then the true max texture size will have no effect.
289 * This entry point is mainly meant for testing texture size dependent 294 * This entry point is mainly meant for testing texture size dependent
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 /** 855 /**
851 * This callback allows the resource cache to callback into the GrContext 856 * This callback allows the resource cache to callback into the GrContext
852 * when the cache is still over budget after a purge. 857 * when the cache is still over budget after a purge.
853 */ 858 */
854 static void OverBudgetCB(void* data); 859 static void OverBudgetCB(void* data);
855 860
856 typedef SkRefCnt INHERITED; 861 typedef SkRefCnt INHERITED;
857 }; 862 };
858 863
859 #endif 864 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698