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

Unified Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 1416363002: Mac: Always use surfaceless mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add export Created 5 years, 2 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 | « content/browser/compositor/buffer_queue.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cf7e8a0ae0569a2f3a012fb2b3e2b0a0ca52c840..ff2626e177be0b7a9fb237e459f941be8598ba54 100644
--- a/content/browser/compositor/gpu_process_transport_factory.cc
+++ b/content/browser/compositor/gpu_process_transport_factory.cc
@@ -66,6 +66,7 @@
#elif defined(OS_MACOSX)
#include "content/browser/compositor/browser_compositor_overlay_candidate_validator_mac.h"
#include "content/browser/compositor/software_output_device_mac.h"
+#include "ui/base/cocoa/remote_layer_api.h"
#endif
using cc::ContextProvider;
@@ -176,8 +177,11 @@ CreateOverlayCandidateValidator(gfx::AcceleratedWidget widget) {
widget, overlay_candidates.Pass()));
}
#elif defined(OS_MACOSX)
- return make_scoped_ptr(
- new BrowserCompositorOverlayCandidateValidatorMac(widget));
+ // Overlays are only supported through the remote layer API.
+ if (ui::RemoteLayerAPISupported()) {
+ return make_scoped_ptr(
+ new BrowserCompositorOverlayCandidateValidatorMac(widget));
+ }
#endif
return scoped_ptr<BrowserCompositorOverlayCandidateValidator>();
}
« no previous file with comments | « content/browser/compositor/buffer_queue.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698