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 #include "gm.h" | 8 #include "gm.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 fDoFilter = doFilter; | 65 fDoFilter = doFilter; |
66 fDoRotate = doRotate; | 66 fDoRotate = doRotate; |
67 } | 67 } |
68 | 68 |
69 virtual ~GiantBitmapGM() { | 69 virtual ~GiantBitmapGM() { |
70 SkDELETE(fBM); | 70 SkDELETE(fBM); |
71 } | 71 } |
72 | 72 |
73 protected: | 73 protected: |
74 virtual uint32_t onGetFlags() const SK_OVERRIDE { | 74 virtual uint32_t onGetFlags() const SK_OVERRIDE { |
| 75 #ifdef SK_BUILD_FOR_ANDROID |
| 76 return kSkipTiled_Flag; |
| 77 #else |
75 if (fDoFilter && fDoRotate && fMode != SkShader::kClamp_TileMode) { | 78 if (fDoFilter && fDoRotate && fMode != SkShader::kClamp_TileMode) { |
76 return kSkipTiled_Flag; | 79 return kSkipTiled_Flag; |
77 } | 80 } |
78 return 0; | 81 return 0; |
| 82 #endif |
79 } | 83 } |
80 | 84 |
81 virtual SkString onShortName() { | 85 virtual SkString onShortName() { |
82 SkString str("giantbitmap_"); | 86 SkString str("giantbitmap_"); |
83 switch (fMode) { | 87 switch (fMode) { |
84 case SkShader::kClamp_TileMode: | 88 case SkShader::kClamp_TileMode: |
85 str.append("clamp"); | 89 str.append("clamp"); |
86 break; | 90 break; |
87 case SkShader::kRepeat_TileMode: | 91 case SkShader::kRepeat_TileMode: |
88 str.append("repeat"); | 92 str.append("repeat"); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 static skiagm::GMRegistry reg010(G010); | 154 static skiagm::GMRegistry reg010(G010); |
151 static skiagm::GMRegistry reg110(G110); | 155 static skiagm::GMRegistry reg110(G110); |
152 static skiagm::GMRegistry reg210(G210); | 156 static skiagm::GMRegistry reg210(G210); |
153 | 157 |
154 static skiagm::GMRegistry reg001(G001); | 158 static skiagm::GMRegistry reg001(G001); |
155 static skiagm::GMRegistry reg101(G101); | 159 static skiagm::GMRegistry reg101(G101); |
156 static skiagm::GMRegistry reg201(G201); | 160 static skiagm::GMRegistry reg201(G201); |
157 static skiagm::GMRegistry reg011(G011); | 161 static skiagm::GMRegistry reg011(G011); |
158 static skiagm::GMRegistry reg111(G111); | 162 static skiagm::GMRegistry reg111(G111); |
159 static skiagm::GMRegistry reg211(G211); | 163 static skiagm::GMRegistry reg211(G211); |
OLD | NEW |