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

Unified Diff: gm/tilemodes.cpp

Issue 22415004: Regenerate bitmaps before each draw in tilemodes_npot GM (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/tilemodes.cpp
diff --git a/gm/tilemodes.cpp b/gm/tilemodes.cpp
index be7f924f7903a913e0217816f9e6e190e4a440e7..5098a836e0f3a7c64e6a66004f730ec755ef0788 100644
--- a/gm/tilemodes.cpp
+++ b/gm/tilemodes.cpp
@@ -130,6 +130,12 @@ protected:
for (size_t kx = 0; kx < SK_ARRAY_COUNT(gModes); kx++) {
for (size_t ky = 0; ky < SK_ARRAY_COUNT(gModes); ky++) {
SkPaint paint;
+#if 1 // Temporary change to regen bitmap before each draw. This may help tracking down an issue
+ // on SGX where resizing NPOT textures to POT textures exhibits a driver bug.
+ if (!fPowerOfTwoSize) {
+ makebm(&fTexture[i], gConfigs[i], size, size);
+ }
+#endif
setup(&paint, fTexture[i], gFilters[j], gModes[kx], gModes[ky]);
paint.setDither(true);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698