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

Side by Side Diff: gm/texdata.cpp

Issue 23904003: Remove GrRefCnt.h in favor of SkRefCnt.h (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rm GrRefCnt.h 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 | gyp/gpu.gypi » ('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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 // This test only works with the GPU backend. 9 // This test only works with the GPU backend.
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 kNone_GrTextureFlags; 86 kNone_GrTextureFlags;
87 desc.fConfig = kSkia8888_GrPixelConfig; 87 desc.fConfig = kSkia8888_GrPixelConfig;
88 desc.fWidth = 2 * S; 88 desc.fWidth = 2 * S;
89 desc.fHeight = 2 * S; 89 desc.fHeight = 2 * S;
90 GrTexture* texture = 90 GrTexture* texture =
91 ctx->createUncachedTexture(desc, gTextureData, 0); 91 ctx->createUncachedTexture(desc, gTextureData, 0);
92 92
93 if (!texture) { 93 if (!texture) {
94 return; 94 return;
95 } 95 }
96 GrAutoUnref au(texture); 96 SkAutoUnref au(texture);
97 97
98 GrContext::AutoClip acs(ctx, SkRect::MakeWH(2*S, 2*S)); 98 GrContext::AutoClip acs(ctx, SkRect::MakeWH(2*S, 2*S));
99 99
100 ctx->setRenderTarget(target); 100 ctx->setRenderTarget(target);
101 101
102 GrPaint paint; 102 GrPaint paint;
103 paint.setBlendFunc(kOne_GrBlendCoeff, kISA_GrBlendCoeff); 103 paint.setBlendFunc(kOne_GrBlendCoeff, kISA_GrBlendCoeff);
104 SkMatrix vm; 104 SkMatrix vm;
105 if (i) { 105 if (i) {
106 vm.setRotate(90 * SK_Scalar1, 106 vm.setRotate(90 * SK_Scalar1,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 }; 139 };
140 140
141 ////////////////////////////////////////////////////////////////////////////// 141 //////////////////////////////////////////////////////////////////////////////
142 142
143 static GM* MyFactory(void*) { return new TexDataGM; } 143 static GM* MyFactory(void*) { return new TexDataGM; }
144 static GMRegistry reg(MyFactory); 144 static GMRegistry reg(MyFactory);
145 145
146 } 146 }
147 147
148 #endif 148 #endif
OLDNEW
« no previous file with comments | « no previous file | gyp/gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698