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

Side by Side Diff: ui/gfx/ozone/impl/software_surface_factory_ozone.cc

Issue 47213009: Add callbacks to register EGL bindings from Ozone (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h" 5 #include "ui/gfx/ozone/impl/software_surface_factory_ozone.h"
6 6
7 #include <drm.h> 7 #include <drm.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <xf86drm.h> 9 #include <xf86drm.h>
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 // with the hardware CRTC such that we can show the buffers. The controller 179 // with the hardware CRTC such that we can show the buffers. The controller
180 // takes ownership of the surface. 180 // takes ownership of the surface.
181 if (!controller_->BindSurfaceToController(surface.Pass())) { 181 if (!controller_->BindSurfaceToController(surface.Pass())) {
182 LOG(ERROR) << "Failed to bind surface to controller"; 182 LOG(ERROR) << "Failed to bind surface to controller";
183 return gfx::kNullAcceleratedWidget; 183 return gfx::kNullAcceleratedWidget;
184 } 184 }
185 185
186 return reinterpret_cast<gfx::AcceleratedWidget>(controller_->get_surface()); 186 return reinterpret_cast<gfx::AcceleratedWidget>(controller_->get_surface());
187 } 187 }
188 188
189 bool SoftwareSurfaceFactoryOzone::LoadEGLGLES2Bindings() { 189 bool SoftwareSurfaceFactoryOzone::LoadEGLGLES2Bindings(
190 AddGLLibraryCallback add_gl_library,
191 SetGLGetProcAddressProcCallback set_gl_get_proc_address) {
190 return false; 192 return false;
191 } 193 }
192 194
193 bool SoftwareSurfaceFactoryOzone::AttemptToResizeAcceleratedWidget( 195 bool SoftwareSurfaceFactoryOzone::AttemptToResizeAcceleratedWidget(
194 gfx::AcceleratedWidget w, 196 gfx::AcceleratedWidget w,
195 const gfx::Rect& bounds) { 197 const gfx::Rect& bounds) {
196 return false; 198 return false;
197 } 199 }
198 200
199 bool SoftwareSurfaceFactoryOzone::SchedulePageFlip(gfx::AcceleratedWidget w) { 201 bool SoftwareSurfaceFactoryOzone::SchedulePageFlip(gfx::AcceleratedWidget w) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 drmEventContext drm_event; 306 drmEventContext drm_event;
305 drm_event.version = DRM_EVENT_CONTEXT_VERSION; 307 drm_event.version = DRM_EVENT_CONTEXT_VERSION;
306 drm_event.page_flip_handler = HandlePageFlipEvent; 308 drm_event.page_flip_handler = HandlePageFlipEvent;
307 drm_event.vblank_handler = NULL; 309 drm_event.vblank_handler = NULL;
308 310
309 // Wait for the page-flip to complete. 311 // Wait for the page-flip to complete.
310 drmHandleEvent(fd, &drm_event); 312 drmHandleEvent(fd, &drm_event);
311 } 313 }
312 314
313 } // namespace gfx 315 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/ozone/impl/software_surface_factory_ozone.h ('k') | ui/gfx/ozone/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698