| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ |
| 6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ | 6 #define UI_GFX_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/bind.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/gfx/surface/surface_export.h" |
| 20 #include "ui/gfx/surface/transport_dib.h" | 20 #include "ui/gfx/surface/transport_dib.h" |
| 21 | 21 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 GLuint depth_stencil_renderbuffer_; | 176 GLuint depth_stencil_renderbuffer_; |
| 177 // Allocate a TransportDIB in the renderer. | 177 // Allocate a TransportDIB in the renderer. |
| 178 base::Callback<void(size_t, TransportDIB::Handle*)> dib_alloc_callback_; | 178 base::Callback<void(size_t, TransportDIB::Handle*)> dib_alloc_callback_; |
| 179 base::Callback<void(TransportDIB::Id)> dib_free_callback_; | 179 base::Callback<void(TransportDIB::Id)> dib_free_callback_; |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ | 182 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_MAC_H_ |
| OLD | NEW |