| 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 class SkBitmap; | 29 class SkBitmap; |
| 30 | 30 |
| 31 namespace gfx { | 31 namespace gfx { |
| 32 class Rect; | 32 class Rect; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace content { | 35 namespace content { |
| 36 | 36 |
| 37 class CompositingIOSurfaceContext; | 37 class CompositingIOSurfaceContext; |
| 38 class CompositingIOSurfaceShaderPrograms; | |
| 39 class CompositingIOSurfaceTransformer; | |
| 40 class RenderWidgetHostViewFrameSubscriber; | 38 class RenderWidgetHostViewFrameSubscriber; |
| 41 class RenderWidgetHostViewMac; | 39 class RenderWidgetHostViewMac; |
| 42 | 40 |
| 43 // This class manages an OpenGL context and IOSurface for the accelerated | 41 // This class manages an OpenGL context and IOSurface for the accelerated |
| 44 // compositing code path. The GL context is attached to | 42 // compositing code path. The GL context is attached to |
| 45 // RenderWidgetHostViewCocoa for blitting the IOSurface. | 43 // RenderWidgetHostViewCocoa for blitting the IOSurface. |
| 46 class CompositingIOSurfaceMac | 44 class CompositingIOSurfaceMac |
| 47 : public base::RefCounted<CompositingIOSurfaceMac> { | 45 : public base::RefCounted<CompositingIOSurfaceMac> { |
| 48 public: | 46 public: |
| 49 // Returns NULL if IOSurface or GL API calls fail. | 47 // Returns NULL if IOSurface or GL API calls fail. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 227 |
| 230 static void EvictionScheduleDoEvict(); | 228 static void EvictionScheduleDoEvict(); |
| 231 static void EvictionDoEvict(); | 229 static void EvictionDoEvict(); |
| 232 static base::LazyInstance<EvictionQueue> eviction_queue_; | 230 static base::LazyInstance<EvictionQueue> eviction_queue_; |
| 233 static bool eviction_scheduled_; | 231 static bool eviction_scheduled_; |
| 234 }; | 232 }; |
| 235 | 233 |
| 236 } // namespace content | 234 } // namespace content |
| 237 | 235 |
| 238 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ | 236 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_MAC_H_ |
| OLD | NEW |