Add colored rectangles implementation in OpenGLRenderer.
Drawing two rectangles one after the other discards the second one because of
Z buffering issues. This will be fixed in another changelist.
Change-Id: Ida1b3cde8a78e60cacc07e477abc44def527ff67
diff --git a/libs/hwui/Matrix.h b/libs/hwui/Matrix.h
index 80f3fd6..9bd289f 100644
--- a/libs/hwui/Matrix.h
+++ b/libs/hwui/Matrix.h
@@ -14,12 +14,15 @@
* limitations under the License.
*/
-#ifndef ANDROID_MATRIX_H
-#define ANDROID_MATRIX_H
+#ifndef ANDROID_UI_MATRIX_H
+#define ANDROID_UI_MATRIX_H
#include <SkMatrix.h>
+#include "Rect.h"
+
namespace android {
+namespace uirenderer {
///////////////////////////////////////////////////////////////////////////////
// Classes
@@ -83,6 +86,8 @@
void copyTo(float* v) const;
void copyTo(SkMatrix& v) const;
+ void mapRect(Rect& r) const;
+
void dump() const;
private:
@@ -103,6 +108,7 @@
typedef Matrix4 mat4;
+}; // namespace uirenderer
}; // namespace android
-#endif // ANDROID_MATRIX_H
+#endif // ANDROID_UI_MATRIX_H