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

Unified Diff: content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc

Issue 1171513002: Reland of Revert of ozone: Remove singleton pattern for SurfaceFactoryOzone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
diff --git a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
index fa12bf90c4f1661bfa32e688b7b63de0b4074c51..dfc0e38ee0b4b1c8518c922f1289fd658c00fc6a 100644
--- a/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
+++ b/content/common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "ui/gl/gl_image.h"
+#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/surface_factory_ozone.h"
namespace content {
@@ -41,8 +42,9 @@ bool GpuMemoryBufferFactoryOzoneNativeBuffer::
void GpuMemoryBufferFactoryOzoneNativeBuffer::
GetSupportedGpuMemoryBufferConfigurations(
std::vector<Configuration>* configurations) {
- if (!ui::SurfaceFactoryOzone::GetInstance()->CanCreateNativePixmap(
- ui::SurfaceFactoryOzone::SCANOUT))
+ if (!ui::OzonePlatform::GetInstance()
+ ->GetSurfaceFactoryOzone()
+ ->CanCreateNativePixmap(ui::SurfaceFactoryOzone::SCANOUT))
return;
configurations->assign(

Powered by Google App Engine
This is Rietveld 408576698