diff options
author | Chris Craik <ccraik@google.com> | 2013-02-13 19:47:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-02-13 19:47:24 +0000 |
commit | bf5703e52e3304246cbf0e73f6976f7d7312d238 (patch) | |
tree | 81ef6382317512aa2c068e99b35477ca61449b60 /libs/hwui/utils | |
parent | 3f76e65d251ead65fe8ff98e3bd4c7623fbaac07 (diff) | |
download | frameworks_base-bf5703e52e3304246cbf0e73f6976f7d7312d238.zip frameworks_base-bf5703e52e3304246cbf0e73f6976f7d7312d238.tar.gz frameworks_base-bf5703e52e3304246cbf0e73f6976f7d7312d238.tar.bz2 |
Revert "Use RenderScript for large text blurs"
This reverts commit 3f76e65d251ead65fe8ff98e3bd4c7623fbaac07
Change-Id: Ia81cd485e5ca696bb284c419dc8a1d2f3247100e
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/Timing.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/libs/hwui/utils/Timing.h b/libs/hwui/utils/Timing.h deleted file mode 100644 index eced987..0000000 --- a/libs/hwui/utils/Timing.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2013 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. - */ - -#ifndef ANDROID_HWUI_TIMING_H -#define ANDROID_HWUI_TIMING_H - -#include <sys/time.h> - -#define TIME_METHOD() MethodTimer __method_timer(__func__) -class MethodTimer { -public: - MethodTimer(const char* name) - : mMethodName(name) { - gettimeofday(&mStart, NULL); - } - - ~MethodTimer() { - struct timeval stop; - gettimeofday(&stop, NULL); - long long elapsed = (stop.tv_sec * 1000000) - (mStart.tv_sec * 1000000) - + (stop.tv_usec - mStart.tv_usec); - ALOGD("%s took %.2fms", mMethodName, elapsed / 1000.0); - } -private: - const char* mMethodName; - struct timeval mStart; -}; - -#endif |