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

Unified Diff: content/browser/compositor/software_output_device_ozone.h

Issue 1575943002: ozone: gracefully handle SoftwareOutputDeviceOzoneTest.CheckCorrectResizeBehavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: content/browser/compositor/software_output_device_ozone.h
diff --git a/content/browser/compositor/software_output_device_ozone.h b/content/browser/compositor/software_output_device_ozone.h
index 1e9e308b29c7fd0708957a5a84f89ccd6e803927..3b2a295bee2910577b34d482c5b96de4b870c38d 100644
--- a/content/browser/compositor/software_output_device_ozone.h
+++ b/content/browser/compositor/software_output_device_ozone.h
@@ -23,7 +23,8 @@ namespace content {
class CONTENT_EXPORT SoftwareOutputDeviceOzone
: public cc::SoftwareOutputDevice {
public:
- explicit SoftwareOutputDeviceOzone(ui::Compositor* compositor);
+ static scoped_ptr<SoftwareOutputDeviceOzone> Create(
+ ui::Compositor* compositor);
~SoftwareOutputDeviceOzone() override;
void Resize(const gfx::Size& viewport_pixel_size,
@@ -32,6 +33,7 @@ class CONTENT_EXPORT SoftwareOutputDeviceOzone
void EndPaint() override;
private:
+ explicit SoftwareOutputDeviceOzone(ui::Compositor* compositor);
ui::Compositor* compositor_;
scoped_ptr<ui::SurfaceOzoneCanvas> surface_ozone_;

Powered by Google App Engine
This is Rietveld 408576698