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

Unified Diff: ui/ozone/platform/dri/gbm_surface_factory.cc

Issue 758853005: Remove Initialize/Shutdown from DriSurfaceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GN Created 6 years 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: ui/ozone/platform/dri/gbm_surface_factory.cc
diff --git a/ui/ozone/platform/dri/gbm_surface_factory.cc b/ui/ozone/platform/dri/gbm_surface_factory.cc
index 3c0fe57aa36028eac0cc6530a7e7d98fe8814af0..ee227a14b7255a621f8b6665fbc255eb35b45574 100644
--- a/ui/ozone/platform/dri/gbm_surface_factory.cc
+++ b/ui/ozone/platform/dri/gbm_surface_factory.cc
@@ -86,7 +86,6 @@ void GbmSurfaceFactory::InitializeGpu(
}
intptr_t GbmSurfaceFactory::GetNativeDisplay() {
- DCHECK(state_ == INITIALIZED);
return reinterpret_cast<intptr_t>(device_);
}
@@ -114,8 +113,6 @@ bool GbmSurfaceFactory::LoadEGLGLES2Bindings(
scoped_ptr<SurfaceOzoneEGL> GbmSurfaceFactory::CreateEGLSurfaceForWidget(
gfx::AcceleratedWidget widget) {
- DCHECK(state_ == INITIALIZED);
-
DriWindowDelegate* delegate = GetOrCreateWindowDelegate(widget);
scoped_ptr<GbmSurface> surface(new GbmSurface(delegate, device_, drm_));
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl_unittest.cc ('k') | ui/ozone/platform/dri/ozone_platform_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698