aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-14 16:04:55 +0200
committerDaniel Hillenbrand <codeworkx@cyanogenmod.org>2013-06-14 16:40:44 +0200
commit647876b665f2cf011e75adc6ff2238d467c47635 (patch)
tree6c825383206fba6fc0ef3c7b3d8b18112dff488b /include
parent506e364aaa1689ca5b8edc68178c0a134dd16781 (diff)
downloadexternal_skia-647876b665f2cf011e75adc6ff2238d467c47635.zip
external_skia-647876b665f2cf011e75adc6ff2238d467c47635.tar.gz
external_skia-647876b665f2cf011e75adc6ff2238d467c47635.tar.bz2
exynos4: fimg2d acceleration
http://git.insignal.co.kr/insignal/origen_quad-jb_mr1.1/android/platform/external/skia/commit/?h=origen_quad-jb_mr1.1&id=7a2cdab99f7a27e2566afbf8c0a2d3ea64c8a375 Change-Id: If605106881540f2170249e6446770ec95b4667b3
Diffstat (limited to 'include')
-rw-r--r--include/core/SkDraw.h3
-rw-r--r--include/core/SkFimgApi4x.h59
2 files changed, 62 insertions, 0 deletions
diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h
index ae323f2..8b27618 100644
--- a/include/core/SkDraw.h
+++ b/include/core/SkDraw.h
@@ -35,6 +35,9 @@ public:
void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[],
const SkPaint&, bool forceUseDevice = false) const;
void drawRect(const SkRect&, const SkPaint&) const;
+#if defined(FIMG2D_ENABLED)
+ void drawRect_withG2D(const SkRect&, const SkPaint&) const;
+#endif
/**
* To save on mallocs, we allow a flag that tells us that srcPath is
* mutable, so that we don't have to make copies of it as we transform it.
diff --git a/include/core/SkFimgApi4x.h b/include/core/SkFimgApi4x.h
new file mode 100644
index 0000000..168f4e0
--- /dev/null
+++ b/include/core/SkFimgApi4x.h
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2012, Samsung Electronics Co. LTD
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#ifndef SkFimgApi_DEFINED
+#define SkFimgApi_DEFINED
+
+#include "SkColorPriv.h"
+#include "SkBitmap.h"
+#include "SkMallocPixelRef.h"
+#include "SkFlattenable.h"
+#include "SkUtils.h"
+#include "SkXfermode.h"
+#include "SkMatrix.h"
+#include "SkBitmap.h"
+#include "SkMask.h"
+
+#include "FimgApi.h"
+
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <errno.h>
+#include <signal.h>
+#include <sys/mman.h>
+#include <sys/time.h>
+#include <sys/ioctl.h>
+#include <sys/poll.h>
+#include <sys/stat.h>
+
+//---------------------------------------------------------------------------//
+
+#define FIMGAPI_COMPROMISE_USE true
+
+#define FIMGAPI_FINISHED (0x1<<0)
+#undef FIMGAPI_DEBUG_MESSAGE
+
+bool FimgApiCheckPossible(Fimg *fimg);
+bool FimgApiIsDstMode(Fimg *fimg);
+bool FimgApiCompromise(Fimg *fimg);
+int FimgApiStretch(Fimg *fimg, const char *func_name);
+int FimgARGB32_Rect(struct Fimg &fimg, uint32_t *device, int x, int y, int width, int height,
+ size_t rowbyte, uint32_t color);
+uint32_t toARGB32(uint32_t color);
+#endif //SkFimgApi_DEFINED