summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderThread.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.h')
-rw-r--r--libs/hwui/renderthread/RenderThread.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h
index 4b5601c5abc4..d9842572d7cd 100644
--- a/libs/hwui/renderthread/RenderThread.h
+++ b/libs/hwui/renderthread/RenderThread.h
@@ -20,6 +20,7 @@
#include "RenderTask.h"
#include "../JankTracker.h"
+#include "CacheManager.h"
#include "TimeLord.h"
#include <GrContext.h>
@@ -102,11 +103,13 @@ public:
const DisplayInfo& mainDisplayInfo() { return mDisplayInfo; }
GrContext* getGrContext() const { return mGrContext.get(); }
- void setGrContext(GrContext* cxt) { mGrContext.reset(cxt); }
+ void setGrContext(GrContext* cxt);
+ CacheManager& cacheManager() { return *mCacheManager; }
VulkanManager& vulkanManager() { return *mVkManager; }
sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap);
+ void dumpGraphicsMemory(int fd);
protected:
virtual bool threadLoop() override;
@@ -161,6 +164,7 @@ private:
Readback* mReadback = nullptr;
sk_sp<GrContext> mGrContext;
+ CacheManager* mCacheManager;
VulkanManager* mVkManager;
};