diff options
author | Behdad Esfahbod <behdad@google.com> | 2014-07-25 14:06:35 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@google.com> | 2014-07-25 14:06:35 -0400 |
commit | 1fc68395d3851a49825cdcbfc7f9ceb4fb206ec1 (patch) | |
tree | 71d9b77b5e78408346962cacd04abe51f1760a41 /core/jni/android/graphics | |
parent | 3c153519ca5f2b66b88901374383f943c9d77df7 (diff) | |
download | frameworks_base-1fc68395d3851a49825cdcbfc7f9ceb4fb206ec1.zip frameworks_base-1fc68395d3851a49825cdcbfc7f9ceb4fb206ec1.tar.gz frameworks_base-1fc68395d3851a49825cdcbfc7f9ceb4fb206ec1.tar.bz2 |
Remove unused TextLayout.h
Respective code was removed when switching to Minikin.
Change-Id: I353c834457145ccd9462a439dfdf16d4adb8b695
Diffstat (limited to 'core/jni/android/graphics')
-rw-r--r-- | core/jni/android/graphics/TextLayout.h | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/core/jni/android/graphics/TextLayout.h b/core/jni/android/graphics/TextLayout.h deleted file mode 100644 index d58c692..0000000 --- a/core/jni/android/graphics/TextLayout.h +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2010 The Android Open Source Project - * - * 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. - */ - -#include "jni.h" - -#include "SkCanvas.h" -#include "SkPaint.h" -#include "unicode/utypes.h" - -#include "TextLayoutCache.h" - -namespace android { - -#define UNICODE_NOT_A_CHAR 0xffff -#define UNICODE_ZWSP 0x200b -#define UNICODE_FIRST_LOW_SURROGATE 0xdc00 -#define UNICODE_FIRST_HIGH_SURROGATE 0xd800 -#define UNICODE_FIRST_PRIVATE_USE 0xe000 -#define UNICODE_FIRST_RTL_CHAR 0x0590 - -/* - * Temporary buffer size - */ -#define CHAR_BUFFER_SIZE 80 - -/** - * Turn on for using the Cache - */ -#define USE_TEXT_LAYOUT_CACHE 1 - -enum { - kBidi_LTR = 0, - kBidi_RTL = 1, - kBidi_Default_LTR = 2, - kBidi_Default_RTL = 3, - kBidi_Force_LTR = 4, - kBidi_Force_RTL = 5, - - kBidi_Mask = 0x7 -}; - -enum { - kDirection_LTR = 0, - kDirection_RTL = 1, - - kDirection_Mask = 0x1 -}; - -class TextLayout { -public: - - static void getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, - jint count, jint contextCount, jint dirFlags, - jfloat* resultAdvances, jfloat* resultTotalAdvance); - - static void getTextPath(SkPaint* paint, const jchar* text, jsize len, - jint bidiFlags, jfloat x, jfloat y, SkPath* path); - - static void drawTextOnPath(SkPaint* paint, const jchar* text, jsize len, - int bidiFlags, jfloat hOffset, jfloat vOffset, - SkPath* path, SkCanvas* canvas); - -private: - static bool needsLayout(const jchar* text, jint len, jint bidiFlags); - - static void handleText(SkPaint* paint, const jchar* text, jsize len, - int bidiFlags, jfloat x, jfloat y, SkPath* path); -}; -} // namespace android |