summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fedor Kudasov <kudasov@google.com> 2019-06-26 19:23:47 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-06-26 19:23:47 +0000
commitc8d53875644a3e607d12f582f851f41b2ee9e213 (patch)
tree820e0febecadf8e79bcb8212293a33a327d0c562
parent93e73469955f12e8415a553d26f30bf04b537cfd (diff)
parent52abc909dadf632df1076781c6c14c250e761b05 (diff)
Merge "Remove EGL references from CanvasContext header"
-rw-r--r--libs/hwui/renderthread/CanvasContext.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/CanvasContext.h b/libs/hwui/renderthread/CanvasContext.h
index 982c087b031a..0910828da4f8 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 <EGL/egl.h>
#include <SkBitmap.h>
#include <SkRect.h>
#include <SkSize.h>
@@ -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<ReliableSurface> mNativeSurface;