diff options
author | 2011-05-06 19:26:26 +0000 | |
---|---|---|
committer | 2011-05-06 19:26:26 +0000 | |
commit | 7744c205f20b5617e83d4af8f97b5771bfa8d671 (patch) | |
tree | d63034e8dd4649c998ce01997417d3e0d015a0a7 /gpu/src/GrGpu.cpp | |
parent | 2e550127e68fcf050f07840fc1102b8471a3b6d0 (diff) |
use SkPoint, creating an alias for GrPoint
http://codereview.appspot.com/4498041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1268 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/src/GrGpu.cpp')
-rw-r--r-- | gpu/src/GrGpu.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gpu/src/GrGpu.cpp b/gpu/src/GrGpu.cpp index e18c4a4473..66105dbc2f 100644 --- a/gpu/src/GrGpu.cpp +++ b/gpu/src/GrGpu.cpp @@ -238,10 +238,16 @@ const GrVertexBuffer* GrGpu::getUnitSquareVertexBuffer() const { if (NULL == fUnitSquareVertexBuffer) { static const GrPoint DATA[] = { + { 0, 0 }, + { GR_Scalar1, 0 }, + { GR_Scalar1, GR_Scalar1 }, + { 0, GR_Scalar1 } +#if 0 GrPoint(0, 0), GrPoint(GR_Scalar1,0), GrPoint(GR_Scalar1,GR_Scalar1), GrPoint(0, GR_Scalar1) +#endif }; static const size_t SIZE = sizeof(DATA); |