OSDN Git Service

Call validateDisplay() when skipping frames
[android-x86/frameworks-native.git] / services / surfaceflinger / DisplayHardware / ComposerHal.h
index 37b7766..68d6e6f 100644 (file)
@@ -137,6 +137,10 @@ public:
 
     void registerCallback(const sp<IComposerCallback>& callback);
 
+    // Reset all pending commands in the command buffer. Useful if you want to
+    // skip a frame but have already queued some commands.
+    void resetCommands();
+
     uint32_t getMaxVirtualDisplayCount();
     bool isUsingVrComposer() const { return mIsUsingVrComposer; }
     Error createVirtualDisplay(uint32_t width, uint32_t height,