OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ | 5 #ifndef UI_SURFACE_ACCELERATED_SURFACE_MAC_H_ |
6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ | 6 #define UI_SURFACE_ACCELERATED_SURFACE_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <CoreFoundation/CoreFoundation.h> | 9 #include <CoreFoundation/CoreFoundation.h> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/mac/scoped_cftyperef.h" | 12 #include "base/mac/scoped_cftyperef.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "ui/gfx/gl/gl_context.h" | 14 #include "ui/gfx/gl/gl_context.h" |
15 #include "ui/gfx/gl/gl_surface.h" | 15 #include "ui/gfx/gl/gl_surface.h" |
16 #include "ui/gfx/gl/gpu_preference.h" | 16 #include "ui/gfx/gl/gpu_preference.h" |
17 #include "ui/gfx/rect.h" | 17 #include "ui/gfx/rect.h" |
18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
19 #include "ui/gfx/surface/surface_export.h" | 19 #include "ui/surface/surface_export.h" |
20 #include "ui/gfx/surface/transport_dib.h" | 20 #include "ui/surface/transport_dib.h" |
21 | 21 |
22 // Should not include GL headers in a header file. Forward declare these types | 22 // Should not include GL headers in a header file. Forward declare these types |
23 // instead. | 23 // instead. |
24 typedef struct _CGLContextObject* CGLContextObj; | 24 typedef struct _CGLContextObject* CGLContextObj; |
25 typedef unsigned int GLenum; | 25 typedef unsigned int GLenum; |
26 typedef unsigned int GLuint; | 26 typedef unsigned int GLuint; |
27 | 27 |
28 namespace gfx { | 28 namespace gfx { |
29 class Rect; | 29 class Rect; |
30 } | 30 } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // the user requests an FBO be allocated. | 171 // the user requests an FBO be allocated. |
172 GLuint texture_; | 172 GLuint texture_; |
173 // The FBO and renderbuffer are only allocated if allocate_fbo_ is | 173 // The FBO and renderbuffer are only allocated if allocate_fbo_ is |
174 // true. | 174 // true. |
175 GLuint fbo_; | 175 GLuint fbo_; |
176 // Allocate a TransportDIB in the renderer. | 176 // Allocate a TransportDIB in the renderer. |
177 base::Callback<void(size_t, TransportDIB::Handle*)> dib_alloc_callback_; | 177 base::Callback<void(size_t, TransportDIB::Handle*)> dib_alloc_callback_; |
178 base::Callback<void(TransportDIB::Id)> dib_free_callback_; | 178 base::Callback<void(TransportDIB::Id)> dib_free_callback_; |
179 }; | 179 }; |
180 | 180 |
181 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ | 181 #endif // UI_SURFACE_ACCELERATED_SURFACE_MAC_H_ |
OLD | NEW |