aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-07-16 09:34:57 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-16 09:34:57 -0700
commitb6b0a6ef179f4143c94ba7e0e1be6e7ce4b0a23a (patch)
tree9cac0bd59b6d3a5196e8a17a68ef8430e5f4fcb6
parent8cab9a7685e872427e6f0388f149575a9b6016ee (diff)
Remove rt flags that are not necessary
-rw-r--r--tests/FloatingPointTextureTest.cpp1
-rw-r--r--tests/GLProgramsTest.cpp1
-rw-r--r--tests/SurfaceTest.cpp1
3 files changed, 0 insertions, 3 deletions
diff --git a/tests/FloatingPointTextureTest.cpp b/tests/FloatingPointTextureTest.cpp
index 1adc7442af..d891b47aa7 100644
--- a/tests/FloatingPointTextureTest.cpp
+++ b/tests/FloatingPointTextureTest.cpp
@@ -42,7 +42,6 @@ void runFPTest(skiatest::Reporter* reporter, GrContextFactory* factory,
for (int origin = 0; origin < 2; ++origin) {
for (int glCtxType = 0; glCtxType < GrContextFactory::kGLContextTypeCnt; ++glCtxType) {
GrSurfaceDesc desc;
- desc.fFlags = kRenderTarget_GrSurfaceFlag;
desc.fWidth = DEV_W;
desc.fHeight = DEV_H;
desc.fConfig = config;
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index d21ae5d4cd..019ab38f47 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -200,7 +200,6 @@ static void set_random_stencil(GrPipelineBuilder* pipelineBuilder, SkRandom* ran
bool GrDrawTarget::programUnitTest(GrContext* context, int maxStages) {
// setup dummy textures
GrSurfaceDesc dummyDesc;
- dummyDesc.fFlags = kRenderTarget_GrSurfaceFlag;
dummyDesc.fConfig = kSkia8888_GrPixelConfig;
dummyDesc.fWidth = 34;
dummyDesc.fHeight = 18;
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp
index b1e233fa3a..a78af9b251 100644
--- a/tests/SurfaceTest.cpp
+++ b/tests/SurfaceTest.cpp
@@ -952,7 +952,6 @@ DEF_GPUTEST(SkImage_NewFromTexture, reporter, factory) {
sk_memset32(storage, expected0, w * h);
GrSurfaceDesc desc;
- desc.fFlags = kRenderTarget_GrSurfaceFlag; // needs to be a rendertarget for readpixels();
desc.fOrigin = kDefault_GrSurfaceOrigin;
desc.fWidth = w;
desc.fHeight = h;