diff options
author | spang <spang@chromium.org> | 2015-09-16 11:07:29 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-16 18:09:03 +0000 |
commit | e82006b4413d7fa8e1305c790f2bfb63f93cf5a5 (patch) | |
tree | c59f06877ea77985cdebcb102ee971f7d020e6f8 /ui/ozone/platform/drm/host | |
parent | 9ee0841722352577f208463072d0c812d3b50765 (diff) | |
download | chromium_src-e82006b4413d7fa8e1305c790f2bfb63f93cf5a5.zip chromium_src-e82006b4413d7fa8e1305c790f2bfb63f93cf5a5.tar.gz chromium_src-e82006b4413d7fa8e1305c790f2bfb63f93cf5a5.tar.bz2 |
ozone: Remove CanShowPrimaryPlaneAsOverlay()
As a replacement, call CreateSurfacelessEGLSurfaceForWidget() and see if
it fails by returning "nullptr". This code actually already does that so
the check is redundant.
We haven't really needed a separate query since surfaceless gained its
own constructor function.
BUG=531814
TEST=link still works fine with platform=gbm
Review URL: https://codereview.chromium.org/1343893002
Cr-Commit-Position: refs/heads/master@{#349161}
Diffstat (limited to 'ui/ozone/platform/drm/host')
-rw-r--r-- | ui/ozone/platform/drm/host/drm_overlay_manager.cc | 4 | ||||
-rw-r--r-- | ui/ozone/platform/drm/host/drm_overlay_manager.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/ui/ozone/platform/drm/host/drm_overlay_manager.cc b/ui/ozone/platform/drm/host/drm_overlay_manager.cc index 933c6f6..70880db 100644 --- a/ui/ozone/platform/drm/host/drm_overlay_manager.cc +++ b/ui/ozone/platform/drm/host/drm_overlay_manager.cc @@ -30,8 +30,4 @@ scoped_ptr<OverlayCandidatesOzone> DrmOverlayManager::CreateOverlayCandidates( new DrmOverlayCandidatesHost(w, platform_support_host_)); } -bool DrmOverlayManager::CanShowPrimaryPlaneAsOverlay() { - return true; -} - } // namespace ui diff --git a/ui/ozone/platform/drm/host/drm_overlay_manager.h b/ui/ozone/platform/drm/host/drm_overlay_manager.h index cc07229..22402cf 100644 --- a/ui/ozone/platform/drm/host/drm_overlay_manager.h +++ b/ui/ozone/platform/drm/host/drm_overlay_manager.h @@ -19,7 +19,6 @@ class DrmOverlayManager : public OverlayManagerOzone { // OverlayManagerOzone: scoped_ptr<OverlayCandidatesOzone> CreateOverlayCandidates( gfx::AcceleratedWidget w) override; - bool CanShowPrimaryPlaneAsOverlay() override; private: DrmGpuPlatformSupportHost* platform_support_host_; |