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

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

Issue 106633002: GBM Ozone implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.cc ('k') | 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
6 #define UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
7
8 #include "ui/ozone/platform/dri/dri_surface_factory.h"
9
10 struct gbm_device;
11
12 namespace ui {
13
14 class GbmSurfaceFactory : public DriSurfaceFactory {
15 public:
16 GbmSurfaceFactory(DriWrapper* dri,
17 gbm_device* device,
18 ScreenManager* screen_manager);
19 virtual ~GbmSurfaceFactory();
20
21 // DriSurfaceFactory:
22 virtual intptr_t GetNativeDisplay() OVERRIDE;
23 virtual const int32_t* GetEGLSurfaceProperties(
24 const int32_t* desired_list) OVERRIDE;
25 virtual bool LoadEGLGLES2Bindings(
26 AddGLLibraryCallback add_gl_library,
27 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
28 virtual scoped_ptr<gfx::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
29 gfx::AcceleratedWidget w) OVERRIDE;
30
31 private:
32 gbm_device* device_; // Not owned.
33
34 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
35 };
36
37 } // namespace ui
38
39 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface.cc ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698