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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.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
Index: content/browser/compositor/gpu_process_transport_factory.cc
diff --git a/content/browser/compositor/gpu_process_transport_factory.cc b/content/browser/compositor/gpu_process_transport_factory.cc
index 0a2423a7af0d520294d5555a91d403d643eff175..b7c2e5826d0937929ee815c3ea615e225925cc40 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -56,6 +56,7 @@
#include "ui/compositor/compositor_constants.h"
#include "ui/compositor/compositor_switches.h"
#include "ui/compositor/layer.h"
+#include "ui/display/types/display_snapshot.h"
#include "ui/gfx/geometry/size.h"
#if defined(MOJO_RUNNER_CLIENT)
@@ -524,7 +525,7 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
context_provider, data->surface_handle,
compositor->vsync_manager(), begin_frame_source.get(),
CreateOverlayCandidateValidator(compositor->widget()),
- GL_TEXTURE_2D, GL_RGB,
+ GL_TEXTURE_2D, GL_RGB, ui::DisplaySnapshot::PrimaryFormat(),
BrowserGpuMemoryBufferManager::current()));
#endif
} else {

Powered by Google App Engine
This is Rietveld 408576698