diff options
author | Android Partner Docs <noreply@android.com> | 2017-06-21 01:25:52 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-06-21 01:25:52 +0000 |
commit | bb57032f17abb0cfb5ebe780451d58a97779c5b6 (patch) | |
tree | 9d32c0a36693b9ce3d89bd10152cd3a2564f486e /en/devices/graphics/implement-vsync.html | |
parent | c20ae7c7396e6f7d9a9e52be1823fffe30450ee8 (diff) | |
parent | f51ce4101185686a65dbe91027eec09c50b8c73e (diff) | |
download | source.android.com-bb57032f17abb0cfb5ebe780451d58a97779c5b6.tar.gz |
Merge "Docs: Changes to source.android.com" am: 14605d77b5 am: 833d7d4b81
am: f51ce41011
Change-Id: I78382338377cfd4f1e3e90e568047d8cf93a9d77
Diffstat (limited to 'en/devices/graphics/implement-vsync.html')
-rw-r--r-- | en/devices/graphics/implement-vsync.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/en/devices/graphics/implement-vsync.html b/en/devices/graphics/implement-vsync.html index 9fa1252b..828d8d1c 100644 --- a/en/devices/graphics/implement-vsync.html +++ b/en/devices/graphics/implement-vsync.html @@ -32,7 +32,9 @@ visual performance of graphics.</p> <p>The Hardware Composer (HWC) has a function pointer indicating the function to implement for VSYNC:</p> -<pre class=prettyprint> int (waitForVsync*) (int64_t *timestamp) </pre> +<pre class="prettyprint"> +int (waitForVsync*) (int64_t *timestamp) +</pre> <p>This function blocks until a VSYNC occurs and returns the timestamp of the actual VSYNC. A message must be sent every time VSYNC occurs. A client can @@ -179,7 +181,7 @@ synchronization framework existed, this function would receive dma-bufs, put those buffers on the display, and block while the buffer is visible. For example:</p> -<pre class=prettyprint> +<pre class="prettyprint"> /* * assumes buf is ready to be displayed. returns when buffer is no longer on * screen. @@ -197,7 +199,7 @@ own fence, which is a guarantee of when the buffer will be off of the display. As you queue up buffers, the kernel will list dependencies with the synchronization framework:</p> -<pre class=prettyprint> +<pre class="prettyprint"> /* * will display buf when fence is signaled. returns immediately with a fence * that will signal when buf is no longer displayed. |