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

Side by Side Diff: ui/ozone/platform/dri/gbm_surface_factory.h

Issue 958403004: [Ozone-Gbm] Explicitly crash if trying software rendering on GBM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ 6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
7 7
8 #include "ui/ozone/platform/dri/dri_surface_factory.h" 8 #include "ui/ozone/platform/dri/dri_surface_factory.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 11 matching lines...) Expand all
22 void InitializeGpu(DrmDeviceManager* drm_device_manager, 22 void InitializeGpu(DrmDeviceManager* drm_device_manager,
23 DriWindowDelegateManager* window_manager); 23 DriWindowDelegateManager* window_manager);
24 24
25 // DriSurfaceFactory: 25 // DriSurfaceFactory:
26 intptr_t GetNativeDisplay() override; 26 intptr_t GetNativeDisplay() override;
27 int GetDrmFd() override; 27 int GetDrmFd() override;
28 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override; 28 const int32_t* GetEGLSurfaceProperties(const int32_t* desired_list) override;
29 bool LoadEGLGLES2Bindings( 29 bool LoadEGLGLES2Bindings(
30 AddGLLibraryCallback add_gl_library, 30 AddGLLibraryCallback add_gl_library,
31 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override; 31 SetGLGetProcAddressProcCallback set_gl_get_proc_address) override;
32 scoped_ptr<SurfaceOzoneCanvas> CreateCanvasForWidget(
33 gfx::AcceleratedWidget widget);
spang 2015/02/28 00:44:45 override;
dnicoara 2015/03/02 16:18:23 Done.
32 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 34 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
33 gfx::AcceleratedWidget w) override; 35 gfx::AcceleratedWidget w) override;
34 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget( 36 scoped_ptr<SurfaceOzoneEGL> CreateSurfacelessEGLSurfaceForWidget(
35 gfx::AcceleratedWidget widget) override; 37 gfx::AcceleratedWidget widget) override;
36 scoped_refptr<ui::NativePixmap> CreateNativePixmap( 38 scoped_refptr<ui::NativePixmap> CreateNativePixmap(
37 gfx::AcceleratedWidget widget, 39 gfx::AcceleratedWidget widget,
38 gfx::Size size, 40 gfx::Size size,
39 BufferFormat format, 41 BufferFormat format,
40 BufferUsage usage) override; 42 BufferUsage usage) override;
41 OverlayCandidatesOzone* GetOverlayCandidates( 43 OverlayCandidatesOzone* GetOverlayCandidates(
(...skipping 13 matching lines...) Expand all
55 bool allow_surfaceless_; 57 bool allow_surfaceless_;
56 58
57 DrmDeviceManager* drm_device_manager_; // Not owned. 59 DrmDeviceManager* drm_device_manager_; // Not owned.
58 60
59 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 61 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
60 }; 62 };
61 63
62 } // namespace ui 64 } // namespace ui
63 65
64 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ 66 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698