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

Side by Side Diff: src/gpu/gl/GrGLEffectMatrix.h

Issue 12334131: Change random number generator for tests to SkMWCRandom (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Rebase to latest Created 7 years, 9 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 | « src/gpu/GrRedBlackTree.h ('k') | tests/AAClipTest.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef GrGLEffectMatrix_DEFINED 8 #ifndef GrGLEffectMatrix_DEFINED
9 #define GrGLEffectMatrix_DEFINED 9 #define GrGLEffectMatrix_DEFINED
10 10
11 #include "GrGLEffect.h" 11 #include "GrGLEffect.h"
12 #include "SkMatrix.h" 12 #include "SkMatrix.h"
13 13
14 class GrTexture; 14 class GrTexture;
15 class SkRandom;
16 15
17 /** 16 /**
18 * This is a helper to implement a texture matrix in a GrGLEffect. 17 * This is a helper to implement a texture matrix in a GrGLEffect.
19 */ 18 */
20 class GrGLEffectMatrix { 19 class GrGLEffectMatrix {
21 public: 20 public:
22 typedef GrGLEffect::EffectKey EffectKey; 21 typedef GrGLEffect::EffectKey EffectKey;
23 /** 22 /**
24 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may plac e these bits at an 23 * The matrix uses kKeyBits of the effect's EffectKey. A GrGLEffect may plac e these bits at an
25 * arbitrary shift in its final key. However, when GrGLEffectMatrix::emitCod e*() code is called 24 * arbitrary shift in its final key. However, when GrGLEffectMatrix::emitCod e*() code is called
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 kNoPersp_Key = 2, 87 kNoPersp_Key = 2,
89 kGeneral_Key = 3, 88 kGeneral_Key = 3,
90 }; 89 };
91 90
92 GrGLUniformManager::UniformHandle fUni; 91 GrGLUniformManager::UniformHandle fUni;
93 GrSLType fUniType; 92 GrSLType fUniType;
94 SkMatrix fPrevMatrix; 93 SkMatrix fPrevMatrix;
95 }; 94 };
96 95
97 #endif 96 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrRedBlackTree.h ('k') | tests/AAClipTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698