aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrIPoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrIPoint.h')
-rw-r--r--include/gpu/GrIPoint.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/gpu/GrIPoint.h b/include/gpu/GrIPoint.h
new file mode 100644
index 0000000000..9471054f06
--- /dev/null
+++ b/include/gpu/GrIPoint.h
@@ -0,0 +1,28 @@
+
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+
+
+#ifndef GrIPoint_DEFINED
+#define GrIPoint_DEFINED
+
+#include "GrTypes.h"
+
+struct GrIPoint {
+public:
+ int32_t fX, fY;
+
+ GrIPoint(int32_t x, int32_t y) : fX(x), fY(y) {}
+
+ void set(int32_t x, int32_t y) {
+ fX = x;
+ fY = y;
+ }
+};
+
+#endif