| 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 #ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ | 5 #ifndef UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ |
| 6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ | 6 #define UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #import <Cocoa/Cocoa.h> | 12 #import <Cocoa/Cocoa.h> |
| 13 #include <IOSurface/IOSurfaceAPI.h> | 13 #include <IOSurface/IOSurface.h> |
| 14 #include <QuartzCore/QuartzCore.h> | 14 #include <QuartzCore/QuartzCore.h> |
| 15 | 15 |
| 16 #include "base/callback.h" | 16 #include "base/callback.h" |
| 17 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| 18 #include "base/mac/scoped_cftyperef.h" | 18 #include "base/mac/scoped_cftyperef.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "ui/gfx/geometry/size.h" | 22 #include "ui/gfx/geometry/size.h" |
| 23 #include "ui/gfx/native_widget_types.h" | 23 #include "ui/gfx/native_widget_types.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 static void EvictionScheduleDoEvict(); | 124 static void EvictionScheduleDoEvict(); |
| 125 static void EvictionDoEvict(); | 125 static void EvictionDoEvict(); |
| 126 static base::LazyInstance<EvictionQueue> eviction_queue_; | 126 static base::LazyInstance<EvictionQueue> eviction_queue_; |
| 127 static bool eviction_scheduled_; | 127 static bool eviction_scheduled_; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace ui | 130 } // namespace ui |
| 131 | 131 |
| 132 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ | 132 #endif // UI_ACCELERATED_WIDGET_MAC_IO_SURFACE_TEXTURE_H_ |
| OLD | NEW |