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

Side by Side Diff: src/gpu/SkGpuDevice.cpp

Issue 23481012: silence the error test to be a better citizen (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Silence 2nd instance of same error Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/ErrorTest.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 #include "SkGpuDevice.h" 8 #include "SkGpuDevice.h"
9 9
10 #include "effects/GrTextureDomainEffect.h" 10 #include "effects/GrTextureDomainEffect.h"
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1202 case SkPaint::kNone_FilterLevel: 1202 case SkPaint::kNone_FilterLevel:
1203 textureFilterMode = GrTextureParams::kNone_FilterMode; 1203 textureFilterMode = GrTextureParams::kNone_FilterMode;
1204 break; 1204 break;
1205 case SkPaint::kLow_FilterLevel: 1205 case SkPaint::kLow_FilterLevel:
1206 textureFilterMode = GrTextureParams::kBilerp_FilterMode; 1206 textureFilterMode = GrTextureParams::kBilerp_FilterMode;
1207 break; 1207 break;
1208 case SkPaint::kMedium_FilterLevel: 1208 case SkPaint::kMedium_FilterLevel:
1209 textureFilterMode = GrTextureParams::kMipMap_FilterMode; 1209 textureFilterMode = GrTextureParams::kMipMap_FilterMode;
1210 break; 1210 break;
1211 case SkPaint::kHigh_FilterLevel: 1211 case SkPaint::kHigh_FilterLevel:
1212 SkErrorInternals::SetError( kInvalidPaint_SkError, 1212 // Fall back to mips for now
1213 "Sorry, I don't yet support high quality "
1214 "filtering on the GPU. Falling back to "
1215 "MIPMaps.");
1216 textureFilterMode = GrTextureParams::kMipMap_FilterMode; 1213 textureFilterMode = GrTextureParams::kMipMap_FilterMode;
1217 break; 1214 break;
1218 default: 1215 default:
1219 SkErrorInternals::SetError( kInvalidPaint_SkError, 1216 SkErrorInternals::SetError( kInvalidPaint_SkError,
1220 "Sorry, I don't understand the filtering " 1217 "Sorry, I don't understand the filtering "
1221 "mode you asked for. Falling back to " 1218 "mode you asked for. Falling back to "
1222 "MIPMaps."); 1219 "MIPMaps.");
1223 textureFilterMode = GrTextureParams::kMipMap_FilterMode; 1220 textureFilterMode = GrTextureParams::kMipMap_FilterMode;
1224 break; 1221 break;
1225 1222
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 GrTexture* texture, 1878 GrTexture* texture,
1882 bool needClear) 1879 bool needClear)
1883 : SkBitmapDevice(make_bitmap(context, texture->asRenderTarget())) { 1880 : SkBitmapDevice(make_bitmap(context, texture->asRenderTarget())) {
1884 1881
1885 SkASSERT(texture && texture->asRenderTarget()); 1882 SkASSERT(texture && texture->asRenderTarget());
1886 // This constructor is called from onCreateCompatibleDevice. It has locked t he RT in the texture 1883 // This constructor is called from onCreateCompatibleDevice. It has locked t he RT in the texture
1887 // cache. We pass true for the third argument so that it will get unlocked. 1884 // cache. We pass true for the third argument so that it will get unlocked.
1888 this->initFromRenderTarget(context, texture->asRenderTarget(), true); 1885 this->initFromRenderTarget(context, texture->asRenderTarget(), true);
1889 fNeedClear = needClear; 1886 fNeedClear = needClear;
1890 } 1887 }
OLDNEW
« no previous file with comments | « no previous file | tests/ErrorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698