OLD | NEW |
1 // Copyright (c) 2012 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 #include "ui/accelerated_widget_mac/io_surface_texture.h" | 5 #include "ui/accelerated_widget_mac/io_surface_texture.h" |
6 | 6 |
7 #include <OpenGL/CGLIOSurface.h> | 7 #include <OpenGL/CGLIOSurface.h> |
8 #include <OpenGL/CGLRenderers.h> | 8 #include <OpenGL/CGLRenderers.h> |
9 #include <OpenGL/gl.h> | 9 #include <OpenGL/gl.h> |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
14 #include "base/callback_helpers.h" | 14 #include "base/callback_helpers.h" |
15 #include "base/debug/trace_event.h" | 15 #include "base/debug/trace_event.h" |
16 #include "base/logging.h" | 16 #include "base/logging.h" |
17 #include "base/mac/bind_objc_block.h" | 17 #include "base/mac/bind_objc_block.h" |
18 #include "base/mac/mac_util.h" | |
19 #include "base/message_loop/message_loop.h" | 18 #include "base/message_loop/message_loop.h" |
20 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
21 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
22 #include "ui/accelerated_widget_mac/io_surface_context.h" | 21 #include "ui/accelerated_widget_mac/io_surface_context.h" |
23 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
24 #include "ui/gfx/geometry/size_conversions.h" | 23 #include "ui/gfx/geometry/size_conversions.h" |
25 #include "ui/gl/gl_context.h" | 24 #include "ui/gl/gl_context.h" |
26 | 25 |
27 namespace ui { | 26 namespace ui { |
28 | 27 |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 280 } |
282 | 281 |
283 // static | 282 // static |
284 base::LazyInstance<IOSurfaceTexture::EvictionQueue> | 283 base::LazyInstance<IOSurfaceTexture::EvictionQueue> |
285 IOSurfaceTexture::eviction_queue_; | 284 IOSurfaceTexture::eviction_queue_; |
286 | 285 |
287 // static | 286 // static |
288 bool IOSurfaceTexture::eviction_scheduled_ = false; | 287 bool IOSurfaceTexture::eviction_scheduled_ = false; |
289 | 288 |
290 } // namespace ui | 289 } // namespace ui |
OLD | NEW |