Remove rt flags that are not necessary

Review URL: https://codereview.chromium.org/1226123012
This commit is contained in:
bsalomon 2015-07-16 09:34:57 -07:00 committed by Commit bot
parent 8cab9a7685
commit b6b0a6ef17
3 changed files with 0 additions and 3 deletions

View File

@ -42,7 +42,6 @@ void runFPTest(skiatest::Reporter* reporter, GrContextFactory* factory,
for (int origin = 0; origin < 2; ++origin) { for (int origin = 0; origin < 2; ++origin) {
for (int glCtxType = 0; glCtxType < GrContextFactory::kGLContextTypeCnt; ++glCtxType) { for (int glCtxType = 0; glCtxType < GrContextFactory::kGLContextTypeCnt; ++glCtxType) {
GrSurfaceDesc desc; GrSurfaceDesc desc;
desc.fFlags = kRenderTarget_GrSurfaceFlag;
desc.fWidth = DEV_W; desc.fWidth = DEV_W;
desc.fHeight = DEV_H; desc.fHeight = DEV_H;
desc.fConfig = config; desc.fConfig = config;

View File

@ -200,7 +200,6 @@ static void set_random_stencil(GrPipelineBuilder* pipelineBuilder, SkRandom* ran
bool GrDrawTarget::programUnitTest(GrContext* context, int maxStages) { bool GrDrawTarget::programUnitTest(GrContext* context, int maxStages) {
// setup dummy textures // setup dummy textures
GrSurfaceDesc dummyDesc; GrSurfaceDesc dummyDesc;
dummyDesc.fFlags = kRenderTarget_GrSurfaceFlag;
dummyDesc.fConfig = kSkia8888_GrPixelConfig; dummyDesc.fConfig = kSkia8888_GrPixelConfig;
dummyDesc.fWidth = 34; dummyDesc.fWidth = 34;
dummyDesc.fHeight = 18; dummyDesc.fHeight = 18;

View File

@ -952,7 +952,6 @@ DEF_GPUTEST(SkImage_NewFromTexture, reporter, factory) {
sk_memset32(storage, expected0, w * h); sk_memset32(storage, expected0, w * h);
GrSurfaceDesc desc; GrSurfaceDesc desc;
desc.fFlags = kRenderTarget_GrSurfaceFlag; // needs to be a rendertarget for readpixels();
desc.fOrigin = kDefault_GrSurfaceOrigin; desc.fOrigin = kDefault_GrSurfaceOrigin;
desc.fWidth = w; desc.fWidth = w;
desc.fHeight = h; desc.fHeight = h;