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

Side by Side Diff: ui/gfx/ozone/dri/dri_surface_factory.cc

Issue 62953003: Support removal of DRI platform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix use_ozone=0 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/dri_surface_factory.h" 5 #include "ui/gfx/ozone/dri/dri_surface_factory.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
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkDevice.h" 13 #include "third_party/skia/include/core/SkDevice.h"
14 #include "ui/gfx/native_widget_types.h" 14 #include "ui/gfx/native_widget_types.h"
15 #include "ui/gfx/ozone/impl/dri_skbitmap.h" 15 #include "ui/gfx/ozone/dri/dri_skbitmap.h"
16 #include "ui/gfx/ozone/impl/dri_surface.h" 16 #include "ui/gfx/ozone/dri/dri_surface.h"
17 #include "ui/gfx/ozone/impl/dri_wrapper.h" 17 #include "ui/gfx/ozone/dri/dri_wrapper.h"
18 #include "ui/gfx/ozone/impl/hardware_display_controller.h" 18 #include "ui/gfx/ozone/dri/hardware_display_controller.h"
19 19
20 namespace gfx { 20 namespace gfx {
21 21
22 namespace { 22 namespace {
23 23
24 const char kDefaultGraphicsCardPath[] = "/dev/dri/card0"; 24 const char kDefaultGraphicsCardPath[] = "/dev/dri/card0";
25 const char kDPMSProperty[] = "DPMS"; 25 const char kDPMSProperty[] = "DPMS";
26 26
27 const gfx::AcceleratedWidget kDefaultWidgetHandle = 1; 27 const gfx::AcceleratedWidget kDefaultWidgetHandle = 1;
28 28
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 drmEventContext drm_event; 306 drmEventContext drm_event;
307 drm_event.version = DRM_EVENT_CONTEXT_VERSION; 307 drm_event.version = DRM_EVENT_CONTEXT_VERSION;
308 drm_event.page_flip_handler = HandlePageFlipEvent; 308 drm_event.page_flip_handler = HandlePageFlipEvent;
309 drm_event.vblank_handler = NULL; 309 drm_event.vblank_handler = NULL;
310 310
311 // Wait for the page-flip to complete. 311 // Wait for the page-flip to complete.
312 drmHandleEvent(fd, &drm_event); 312 drmHandleEvent(fd, &drm_event);
313 } 313 }
314 314
315 } // namespace gfx 315 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/ozone/dri/dri_surface_factory.h ('k') | ui/gfx/ozone/dri/dri_surface_factory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698