From 52abc909dadf632df1076781c6c14c250e761b05 Mon Sep 17 00:00:00 2001 From: Fedor Kudasov Date: Wed, 26 Jun 2019 16:59:16 +0100 Subject: [PATCH] Remove EGL references from CanvasContext header Bug: 117921091 Test: all tests should pass Change-Id: Ib8ff068c8dcbc4f9855cc91c4af1d704d66dde7b --- libs/hwui/renderthread/CanvasContext.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h index 982c087b031a5..0910828da4f8d 100644 --- a/libs/hwui/renderthread/CanvasContext.h +++ b/libs/hwui/renderthread/CanvasContext.h @@ -29,7 +29,6 @@ #include "renderthread/RenderTask.h" #include "renderthread/RenderThread.h" -#include #include #include #include @@ -55,7 +54,6 @@ class RenderState; namespace renderthread { -class EglManager; class Frame; // This per-renderer class manages the bridge between the global EGL context @@ -216,8 +214,9 @@ private: SkRect computeDirtyRect(const Frame& frame, SkRect* dirty); - EGLint mLastFrameWidth = 0; - EGLint mLastFrameHeight = 0; + // The same type as Frame.mWidth and Frame.mHeight + int32_t mLastFrameWidth = 0; + int32_t mLastFrameHeight = 0; RenderThread& mRenderThread; sp mNativeSurface;