From 9fa4071c4768c63902c6a74a4b480b51a8b95d43 Mon Sep 17 00:00:00 2001 From: John Reck Date: Fri, 9 May 2014 15:26:59 -0700 Subject: Refactor VirtualLightRefBase & JNI Change-Id: I8e244e7109e59d5be96871b23bb9b1201c7f9eaa --- libs/hwui/Animator.h | 2 +- libs/hwui/CanvasProperty.h | 3 ++- libs/hwui/DisplayList.h | 1 - libs/hwui/RenderNode.h | 1 - libs/hwui/utils/VirtualLightRefBase.h | 34 ---------------------------------- 5 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 libs/hwui/utils/VirtualLightRefBase.h (limited to 'libs') diff --git a/libs/hwui/Animator.h b/libs/hwui/Animator.h index 0b074cc..86fc7c3 100644 --- a/libs/hwui/Animator.h +++ b/libs/hwui/Animator.h @@ -17,13 +17,13 @@ #define ANIMATOR_H #include +#include #include #include "CanvasProperty.h" #include "Interpolator.h" #include "TreeInfo.h" #include "utils/Macros.h" -#include "utils/VirtualLightRefBase.h" namespace android { namespace uirenderer { diff --git a/libs/hwui/CanvasProperty.h b/libs/hwui/CanvasProperty.h index 2e1d176..6074394 100644 --- a/libs/hwui/CanvasProperty.h +++ b/libs/hwui/CanvasProperty.h @@ -16,8 +16,9 @@ #ifndef CANVASPROPERTY_H #define CANVASPROPERTY_H +#include + #include "utils/Macros.h" -#include "utils/VirtualLightRefBase.h" #include diff --git a/libs/hwui/DisplayList.h b/libs/hwui/DisplayList.h index eaeb772..b2ead5b 100644 --- a/libs/hwui/DisplayList.h +++ b/libs/hwui/DisplayList.h @@ -41,7 +41,6 @@ #include "Matrix.h" #include "DeferredDisplayList.h" #include "RenderProperties.h" -#include "utils/VirtualLightRefBase.h" class SkBitmap; class SkPaint; diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 159903c..bc62ee1 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -45,7 +45,6 @@ #include "DisplayList.h" #include "RenderProperties.h" #include "TreeInfo.h" -#include "utils/VirtualLightRefBase.h" class SkBitmap; class SkPaint; diff --git a/libs/hwui/utils/VirtualLightRefBase.h b/libs/hwui/utils/VirtualLightRefBase.h deleted file mode 100644 index b545aab..0000000 --- a/libs/hwui/utils/VirtualLightRefBase.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2014 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 VIRTUALLIGHTREFBASE_H -#define VIRTUALLIGHTREFBASE_H - -#include - -namespace android { -namespace uirenderer { - -// This is a wrapper around LightRefBase that simply enforces a virtual -// destructor to eliminate the template requirement of LightRefBase -class VirtualLightRefBase : public LightRefBase { -public: - virtual ~VirtualLightRefBase() {} -}; - -} /* namespace uirenderer */ -} /* namespace android */ - -#endif /* VIRTUALLIGHTREFBASE_H */ -- cgit v1.1