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

Side by Side Diff: gm/rectangletexture.cpp

Issue 2004433002: Retract GrRenderTarget from GrTestTarget (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bench build Created 4 years, 7 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
« no previous file with comments | « gm/imagefromyuvtextures.cpp ('k') | include/gpu/GrContext.h » ('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 2016 Google Inc. 2 * Copyright 2016 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 // This test only works with the GPU backend. 8 // This test only works with the GPU backend.
9 9
10 #include "gm.h" 10 #include "gm.h"
11 11
12 #if SK_SUPPORT_GPU 12 #if SK_SUPPORT_GPU
13 13
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrGpu.h"
15 #include "GrTest.h" 16 #include "GrTest.h"
17 #include "gl/GrGLContext.h"
16 #include "SkBitmap.h" 18 #include "SkBitmap.h"
17 #include "SkGradientShader.h" 19 #include "SkGradientShader.h"
18 #include "SkImage.h" 20 #include "SkImage.h"
19 21
20 namespace skiagm { 22 namespace skiagm {
21 class RectangleTexture : public GM { 23 class RectangleTexture : public GM {
22 public: 24 public:
23 RectangleTexture() { 25 RectangleTexture() {
24 this->setBGColor(0xFFFFFFFF); 26 this->setBGColor(0xFFFFFFFF);
25 } 27 }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 } 182 }
181 183
182 private: 184 private:
183 typedef GM INHERITED; 185 typedef GM INHERITED;
184 }; 186 };
185 187
186 DEF_GM(return new RectangleTexture;) 188 DEF_GM(return new RectangleTexture;)
187 } 189 }
188 190
189 #endif 191 #endif
OLDNEW
« no previous file with comments | « gm/imagefromyuvtextures.cpp ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698