modify inputeventsource,read event in thread

This commit is contained in:
侯歌 2022-01-21 18:30:50 +08:00
parent 193a78a0ae
commit 4553ebb9ca
2 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ int InputEventSource::handleEvents(){
}
int InputEventSource::process(){
LOGD_IF(mRawEvents.size(),"%p recv %d events ",this,mRawEvents.size());
LOGV_IF(mRawEvents.size(),"%p recv %d events ",this,mRawEvents.size());
while(mRawEvents.size()){
const INPUTEVENT e=mRawEvents.front();
struct timeval tv={e.tv_sec,e.tv_usec};

View File

@ -21,9 +21,9 @@ ViewPager::ViewPager(int w,int h):ViewGroup(w,h){
ViewPager::~ViewPager(){
delete mLeftEdge;
delete mRightEdge;
delete mMarginDrawable;
delete mScroller;
delete mRightEdge;
delete mMarginDrawable;
delete mScroller;
}
ViewPager::ViewPager(Context* context,const AttributeSet& attrs)
@ -55,7 +55,7 @@ void ViewPager::initViewPager(){
mTouchSlop = configuration.getScaledPagingTouchSlop();
mMinimumVelocity = (int) (MIN_FLING_VELOCITY * density);
mMaximumVelocity = configuration.getScaledMaximumFlingVelocity();
mLeftEdge = new EdgeEffect(context);
mLeftEdge = new EdgeEffect(context);
mRightEdge = new EdgeEffect(context);
mMarginDrawable =nullptr;