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

Unified Diff: services/ui/surfaces/direct_output_surface_ozone.cc

Issue 2213273002: ozone: Consolidate primary plane format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment on a single line. Created 4 years, 4 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
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | ui/display/types/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/direct_output_surface_ozone.cc
diff --git a/services/ui/surfaces/direct_output_surface_ozone.cc b/services/ui/surfaces/direct_output_surface_ozone.cc
index 38bf776d22e3add2271dde980aa1afc6f298608c..50cd34beb7661bbe984be6a41c7c3977b9dfc872 100644
--- a/services/ui/surfaces/direct_output_surface_ozone.cc
+++ b/services/ui/surfaces/direct_output_surface_ozone.cc
@@ -19,6 +19,7 @@
#include "services/ui/common/mojo_gpu_memory_buffer_manager.h"
#include "services/ui/gpu/mus_gpu_memory_buffer_manager.h"
#include "services/ui/surfaces/surfaces_context_provider.h"
+#include "ui/display/types/display_snapshot.h"
using display_compositor::BufferQueue;
@@ -35,9 +36,10 @@ DirectOutputSurfaceOzone::DirectOutputSurfaceOzone(
context_provider->ContextSupport()),
synthetic_begin_frame_source_(synthetic_begin_frame_source),
weak_ptr_factory_(this) {
- buffer_queue_.reset(new BufferQueue(
- context_provider->ContextGL(), target, internalformat, &gl_helper_,
- MusGpuMemoryBufferManager::current(), widget));
+ buffer_queue_.reset(
+ new BufferQueue(context_provider->ContextGL(), target, internalformat,
+ ui::DisplaySnapshot::PrimaryFormat(), &gl_helper_,
+ MusGpuMemoryBufferManager::current(), widget));
capabilities_.uses_default_gl_framebuffer = false;
capabilities_.flipped_output_surface = true;
« no previous file with comments | « services/ui/surfaces/DEPS ('k') | ui/display/types/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698