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

Unified Diff: ui/ozone/platform/drm/drm_surface_factory.cc

Issue 1050923003: zero-copy: Clarify to allocate/destroy GpuMemoryBuffer on any thread and use it on the main thread o (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: just add thread check Created 5 years, 8 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: ui/ozone/platform/drm/drm_surface_factory.cc
diff --git a/ui/ozone/platform/drm/drm_surface_factory.cc b/ui/ozone/platform/drm/drm_surface_factory.cc
index 226cbaa1fb90aceffa0d7aab46b1eee17284d39c..864454af263a76fcfc0d33c36fcf55f2722426da 100644
--- a/ui/ozone/platform/drm/drm_surface_factory.cc
+++ b/ui/ozone/platform/drm/drm_surface_factory.cc
@@ -25,12 +25,14 @@ DrmSurfaceFactory::~DrmSurfaceFactory() {
scoped_ptr<ui::SurfaceOzoneCanvas> DrmSurfaceFactory::CreateCanvasForWidget(
gfx::AcceleratedWidget widget) {
+ DCHECK(thread_checker_.CalledOnValidThread());
reveman 2015/04/07 13:07:05 ditto. how is this related?
return make_scoped_ptr(new DrmSurface(screen_manager_->GetWindow(widget)));
}
bool DrmSurfaceFactory::LoadEGLGLES2Bindings(
AddGLLibraryCallback add_gl_library,
SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
+ DCHECK(thread_checker_.CalledOnValidThread());
return false;
}

Powered by Google App Engine
This is Rietveld 408576698