mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-02 04:07:42 +08:00
modify View::~View
This commit is contained in:
parent
7a3d7d3f41
commit
3d977de29b
@ -29,7 +29,7 @@
|
|||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
pkg_check_modules(PC_CAIRO QUIET cairo)
|
pkg_check_modules(PC_CAIRO cairo)
|
||||||
|
|
||||||
if(CMAKE_HOST_WIN32)
|
if(CMAKE_HOST_WIN32)
|
||||||
find_path(CAIRO_INCLUDE_DIRS
|
find_path(CAIRO_INCLUDE_DIRS
|
||||||
@ -74,10 +74,10 @@ if ("${Cairo_FIND_VERSION}" VERSION_GREATER "${CAIRO_VERSION}")
|
|||||||
message(FATAL_ERROR "Required version (" ${Cairo_FIND_VERSION} ") is higher than found version (" ${CAIRO_VERSION} ")")
|
message(FATAL_ERROR "Required version (" ${Cairo_FIND_VERSION} ") is higher than found version (" ${CAIRO_VERSION} ")")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if ( CAIRO_INCLUDE_DIRS AND CAIRO_LIBRARIES)
|
||||||
|
set(CAIRO_LIBRARY ${CAIRO_LIBRARIES})
|
||||||
|
set(CAIRO_INCLUDE_DIR ${CAIRO_INCLUDE_DIRS})
|
||||||
|
endif()
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cairo REQUIRED_VARS CAIRO_INCLUDE_DIRS CAIRO_INCLUDE_DIR CAIRO_LIBRARIES CAIRO_LIBRARY VERSION_VAR CAIRO_VERSION)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cairo
|
|
||||||
REQUIRED_VARS CAIRO_INCLUDE_DIRS CAIRO_LIBRARIES
|
|
||||||
VERSION_VAR CAIRO_VERSION)
|
|
||||||
|
|
||||||
mark_as_advanced(CAIRO_INCLUDE_DIRS CAIRO_LIBRARIES CAIRO_VERSION)
|
mark_as_advanced(CAIRO_INCLUDE_DIRS CAIRO_LIBRARIES CAIRO_VERSION)
|
||||||
|
@ -406,7 +406,6 @@ View::~View(){
|
|||||||
mViewCount --;
|
mViewCount --;
|
||||||
LOGD_IF(View::VIEW_DEBUG||(mViewCount>1000),"%p:%d mViewCount=%d",this,mID,mViewCount);
|
LOGD_IF(View::VIEW_DEBUG||(mViewCount>1000),"%p:%d mViewCount=%d",this,mID,mViewCount);
|
||||||
|
|
||||||
delete mRunQueue;
|
|
||||||
delete mScrollCache;
|
delete mScrollCache;
|
||||||
mScrollCache = nullptr;
|
mScrollCache = nullptr;
|
||||||
mMeasureCache.clear();
|
mMeasureCache.clear();
|
||||||
@ -435,6 +434,7 @@ View::~View(){
|
|||||||
delete mOverlay;
|
delete mOverlay;
|
||||||
delete mAnimator;
|
delete mAnimator;
|
||||||
delete mFloatingTreeObserver;
|
delete mFloatingTreeObserver;
|
||||||
|
delete mRunQueue;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool View::isShowingLayoutBounds()const{
|
bool View::isShowingLayoutBounds()const{
|
||||||
|
Loading…
Reference in New Issue
Block a user