mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
Merge "configstore: add startGraphicsAllocatorService" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1f8c6639e6
@@ -108,4 +108,10 @@ interface ISurfaceFlingerConfigs {
|
||||
* FramebufferSurface.
|
||||
*/
|
||||
maxFrameBufferAcquiredBuffers() generates(OptionalInt64 value);
|
||||
|
||||
/**
|
||||
* Returns true if surface flinger should start
|
||||
* hardware.graphics.allocator@2.0::IAllocator service.
|
||||
*/
|
||||
startGraphicsAllocatorService() generates(OptionalBool value);
|
||||
};
|
||||
|
||||
@@ -112,6 +112,16 @@ Return<void> SurfaceFlingerConfigs::useVrFlinger(useVrFlinger_cb _hidl_cb) {
|
||||
return Void();
|
||||
}
|
||||
|
||||
Return<void> SurfaceFlingerConfigs::startGraphicsAllocatorService(
|
||||
startGraphicsAllocatorService_cb _hidl_cb) {
|
||||
bool value = false;
|
||||
#ifdef START_GRAPHICS_ALLOCATOR_SERVICE
|
||||
value = true;
|
||||
#endif
|
||||
_hidl_cb({true, value});
|
||||
return Void();
|
||||
}
|
||||
|
||||
} // namespace implementation
|
||||
} // namespace V1_0
|
||||
} // namespace configstore
|
||||
|
||||
@@ -35,6 +35,8 @@ struct SurfaceFlingerConfigs : public ISurfaceFlingerConfigs {
|
||||
Return<void> hasSyncFramework(hasSyncFramework_cb _hidl_cb) override;
|
||||
Return<void> useVrFlinger(useVrFlinger_cb _hidl_cb) override;
|
||||
Return<void> maxFrameBufferAcquiredBuffers(maxFrameBufferAcquiredBuffers_cb _hidl_cb) override;
|
||||
Return<void> startGraphicsAllocatorService(
|
||||
startGraphicsAllocatorService_cb _hidl_cb) override;
|
||||
|
||||
// Methods from ::android::hidl::base::V1_0::IBase follow.
|
||||
|
||||
|
||||
@@ -50,3 +50,7 @@ endif
|
||||
ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
|
||||
LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
|
||||
endif
|
||||
|
||||
ifneq ($(SF_START_GRAPHICS_ALLOCATOR_SERVICE),)
|
||||
LOCAL_CFLAGS += -DSTART_GRAPHICS_ALLOCATOR_SERVICE
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user