Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1345)

Unified Diff: ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h

Issue 2712463002: ozone: Reject overlays when a test buffer can't be allocated. (Closed)
Patch Set: Remove DCHECK that one plane would always succeed. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h
diff --git a/ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h b/ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h
index ecd8c933406276e240ad3a4ddfa42cb433741af1..fde77e3ba0f810d42827e2282467d50ac0f1e9b8 100644
--- a/ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h
+++ b/ui/ozone/platform/drm/gpu/mock_scanout_buffer_generator.h
@@ -21,8 +21,14 @@ class MockScanoutBufferGenerator : public ScanoutBufferGenerator {
uint32_t format,
const gfx::Size& size) override;
+ void set_allocation_failure(bool allocation_failure) {
+ allocation_failure_ = allocation_failure;
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(MockScanoutBufferGenerator);
+
+ bool allocation_failure_ = false;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698