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

Unified Diff: gm/verylargebitmap.cpp

Issue 39033005: Reduce bitmap sizes in verylargebitmap GM to not crash on windows (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: upload again, rietveld diff failed. Created 7 years, 2 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/verylargebitmap.cpp
diff --git a/gm/verylargebitmap.cpp b/gm/verylargebitmap.cpp
index a9ae46ff243c1f811a82107e727af5e9edddf3ab..bc83526c2976decb7df89169f90b0e51b1f405a4 100644
--- a/gm/verylargebitmap.cpp
+++ b/gm/verylargebitmap.cpp
@@ -69,10 +69,10 @@ protected:
}
virtual void onDraw(SkCanvas* canvas) SK_OVERRIDE {
- int veryBig = 70*1024; // 64K < size
- int big = 60*1024; // 32K < size < 64K
+ int veryBig = 65*1024; // 64K < size
+ int big = 33*1024; // 32K < size < 64K
// smaller than many max texture sizes, but large enough to gpu-tile for memory reasons.
- int medium = 7*1024;
+ int medium = 5*1024;
int small = 150;
SkColor colors[2];
@@ -90,8 +90,6 @@ protected:
colors[0] = SK_ColorMAGENTA;
colors[1] = SK_ColorYELLOW;
- // as of this writing, the raster code will fail to draw the scaled version
- // since it has a 64K limit on x,y coordinates... (but gpu should succeed)
show_bm(canvas, medium, medium, colors);
canvas->translate(0, SkIntToScalar(150));
« 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