19 #ifndef MIR_GRAPHICS_ANDROID_INTERPRETER_CACHE_H_
20 #define MIR_GRAPHICS_ANDROID_INTERPRETER_CACHE_H_
23 #include <unordered_map>
31 class InterpreterCache :
public InterpreterResourceCache
36 void store_buffer(std::shared_ptr<graphics::Buffer>
const& buffer,
37 std::shared_ptr<graphics::NativeBuffer>
const& key);
38 std::shared_ptr<graphics::Buffer> retrieve_buffer(ANativeWindowBuffer* key);
39 void update_native_fence(ANativeWindowBuffer* key,
int fence);
42 std::unordered_map<ANativeWindowBuffer*, std::shared_ptr<graphics::Buffer>> buffers_in_driver;
43 std::unordered_map<ANativeWindowBuffer*, std::shared_ptr<graphics::NativeBuffer>> native_buffers;