2010-12-22 21:39:39 +00:00
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2010-12-22 21:39:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2010-12-22 21:39:39 +00:00
|
|
|
#ifndef GrPoint_DEFINED
|
|
|
|
#define GrPoint_DEFINED
|
|
|
|
|
|
|
|
#include "GrTypes.h"
|
2012-11-01 17:12:34 +00:00
|
|
|
#include "SkScalar.h"
|
2011-05-06 19:26:26 +00:00
|
|
|
#include "SkPoint.h"
|
2010-12-22 21:39:39 +00:00
|
|
|
|
2011-05-06 19:26:26 +00:00
|
|
|
#define GrPoint SkPoint
|
|
|
|
#define GrVec SkVector
|
|
|
|
|
|
|
|
struct GrIPoint16 {
|
|
|
|
int16_t fX, fY;
|
2012-08-23 18:09:54 +00:00
|
|
|
|
2011-05-06 19:26:26 +00:00
|
|
|
void set(intptr_t x, intptr_t y) {
|
|
|
|
fX = GrToS16(x);
|
|
|
|
fY = GrToS16(y);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2010-12-22 21:39:39 +00:00
|
|
|
#endif
|
|
|
|
|