Fixes int to scalar warnings. This checkin changes the range of random matrix values in a benchmark but it is believed not to affect the runtime.
Review URL: http://codereview.appspot.com/5371045/ git-svn-id: http://skia.googlecode.com/svn/trunk@2653 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
caa91356a7
commit
3d3dfe011c
@ -267,9 +267,9 @@ private:
|
||||
class ScaleTransMixedMatrixBench : public MatrixBench {
|
||||
public:
|
||||
ScaleTransMixedMatrixBench(void* p) : INHERITED(p, "scaletrans_mixed"), fCount (16) {
|
||||
fMatrix.setAll(fRandom.nextS(), fRandom.nextS(), fRandom.nextS(),
|
||||
fRandom.nextS(), fRandom.nextS(), fRandom.nextS(),
|
||||
fRandom.nextS(), fRandom.nextS(), fRandom.nextS());
|
||||
fMatrix.setAll(fRandom.nextSScalar1(), fRandom.nextSScalar1(), fRandom.nextSScalar1(),
|
||||
fRandom.nextSScalar1(), fRandom.nextSScalar1(), fRandom.nextSScalar1(),
|
||||
fRandom.nextSScalar1(), fRandom.nextSScalar1(), fRandom.nextSScalar1());
|
||||
int i;
|
||||
for (i = 0; i < SkBENCHLOOP(fCount); i++) {
|
||||
fSrc[i].fX = fRandom.nextSScalar1();
|
||||
|
Loading…
Reference in New Issue
Block a user