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

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

Issue 348923002: ozone: Build fixes for gbm & component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: everything is sideways 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/gl/gl.gyp ('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
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 struct gbm_device; 10 struct gbm_device;
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class GbmSurfaceFactory : public DriSurfaceFactory { 14 class GbmSurfaceFactory : public DriSurfaceFactory {
15 public: 15 public:
16 GbmSurfaceFactory(DriWrapper* dri, 16 GbmSurfaceFactory(DriWrapper* dri,
17 gbm_device* device, 17 gbm_device* device,
18 ScreenManager* screen_manager); 18 ScreenManager* screen_manager);
19 virtual ~GbmSurfaceFactory(); 19 virtual ~GbmSurfaceFactory();
20 20
21 // DriSurfaceFactory: 21 // DriSurfaceFactory:
22 virtual intptr_t GetNativeDisplay() OVERRIDE; 22 virtual intptr_t GetNativeDisplay() OVERRIDE;
23 virtual const int32_t* GetEGLSurfaceProperties( 23 virtual const int32_t* GetEGLSurfaceProperties(
24 const int32_t* desired_list) OVERRIDE; 24 const int32_t* desired_list) OVERRIDE;
25 virtual bool LoadEGLGLES2Bindings( 25 virtual bool LoadEGLGLES2Bindings(
26 AddGLLibraryCallback add_gl_library, 26 AddGLLibraryCallback add_gl_library,
27 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE; 27 SetGLGetProcAddressProcCallback set_gl_get_proc_address) OVERRIDE;
28 virtual scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 28 virtual scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
29 gfx::AcceleratedWidget w) OVERRIDE; 29 gfx::AcceleratedWidget w) OVERRIDE;
30 virtual gfx::NativeBufferOzone CreateNativeBuffer( 30 virtual ui::NativeBufferOzone CreateNativeBuffer(
31 gfx::Size size, 31 gfx::Size size,
32 BufferFormat format) OVERRIDE; 32 BufferFormat format) OVERRIDE;
33 33
34 private: 34 private:
35 gbm_device* device_; // Not owned. 35 gbm_device* device_; // Not owned.
36 36
37 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory); 37 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceFactory);
38 }; 38 };
39 39
40 } // namespace ui 40 } // namespace ui
41 41
42 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_ 42 #endif // UI_OZONE_PLATFORM_DRI_GBM_SURFACE_FACTORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/ozone/platform/dri/gbm_surface_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698