summaryrefslogtreecommitdiff
path: root/chromium/components/exo/buffer.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-01-29 16:35:13 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-02-01 15:33:35 +0000
commitc8c2d1901aec01e934adf561a9fdf0cc776cdef8 (patch)
tree9157c3d9815e5870799e070b113813bec53e0535 /chromium/components/exo/buffer.h
parentabefd5095b41dac94ca451d784ab6e27372e981a (diff)
downloadqtwebengine-chromium-c8c2d1901aec01e934adf561a9fdf0cc776cdef8.tar.gz
BASELINE: Update Chromium to 64.0.3282.139
Change-Id: I1cae68fe9c94ff7608b26b8382fc19862cdb293a Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/exo/buffer.h')
-rw-r--r--chromium/components/exo/buffer.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/chromium/components/exo/buffer.h b/chromium/components/exo/buffer.h
index 0c722beddf7..74a92bde67c 100644
--- a/chromium/components/exo/buffer.h
+++ b/chromium/components/exo/buffer.h
@@ -72,6 +72,12 @@ class Buffer : public base::SupportsWeakPtr<Buffer> {
// Returns a trace value representing the state of the buffer.
std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
+ // Set the amount of time to wait for buffer release.
+ void set_wait_for_release_delay_for_testing(
+ base::TimeDelta wait_for_release_delay) {
+ wait_for_release_delay_ = wait_for_release_delay;
+ }
+
private:
class Texture;
@@ -79,11 +85,11 @@ class Buffer : public base::SupportsWeakPtr<Buffer> {
// client that buffer has been released.
void Release();
- // This is used by ProduceTextureMailbox() to produce a release callback
+ // This is used by ProduceTransferableResource() to produce a release callback
// that releases a texture so it can be destroyed or reused.
void ReleaseTexture(std::unique_ptr<Texture> texture);
- // This is used by ProduceTextureMailbox() to produce a release callback
+ // This is used by ProduceTransferableResource() to produce a release callback
// that releases the buffer contents referenced by a texture before the
// texture is destroyed or reused.
void ReleaseContentsTexture(std::unique_ptr<Texture> texture,
@@ -126,6 +132,9 @@ class Buffer : public base::SupportsWeakPtr<Buffer> {
// is pending.
base::CancelableClosure release_contents_callback_;
+ // The amount of time to wait for buffer release.
+ base::TimeDelta wait_for_release_delay_;
+
DISALLOW_COPY_AND_ASSIGN(Buffer);
};