summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Layer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-07-08 19:17:03 -0700
committerRomain Guy <romainguy@google.com>2010-07-08 19:19:07 -0700
commitf7f93556c8fcc640ab5adef79d021a80a72a645a (patch)
tree71fc93983fc54c32a0051890b719e6f20ec90003 /libs/hwui/Layer.h
parent26be805f4242af9d511584663e88dfae235d74a4 (diff)
downloadframeworks_base-f7f93556c8fcc640ab5adef79d021a80a72a645a.zip
frameworks_base-f7f93556c8fcc640ab5adef79d021a80a72a645a.tar.gz
frameworks_base-f7f93556c8fcc640ab5adef79d021a80a72a645a.tar.bz2
Draw n-patches using OpenGL.
Currently only tested with title bars and buttons. Change-Id: I8263a9281898dc0e943b1b8412827fe55639b9d6
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r--libs/hwui/Layer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h
index 586a05e..d4db782 100644
--- a/libs/hwui/Layer.h
+++ b/libs/hwui/Layer.h
@@ -17,6 +17,8 @@
#ifndef ANDROID_UI_LAYER_H
#define ANDROID_UI_LAYER_H
+#include <sys/types.h>
+
#include <GLES2/gl2.h>
#include <SkXfermode.h>
@@ -54,7 +56,7 @@ struct LayerSize {
bool operator==(const LayerSize& rhs) const {
return width == rhs.width && height == rhs.height;
}
-};
+}; // struct LayerSize
/**
* A layer has dimensions and is backed by an OpenGL texture.