| 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_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // The "GPU plugin" is currently implemented as a special kind of | 9 // The "GPU plugin" is currently implemented as a special kind of |
| 10 // NPAPI plugin to provide high-performance on-screen 3D rendering for | 10 // NPAPI plugin to provide high-performance on-screen 3D rendering for |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 // structures, in conjunction with the AcceleratedSurfaceContainerManagerMac. | 27 // structures, in conjunction with the AcceleratedSurfaceContainerManagerMac. |
| 28 | 28 |
| 29 #include <CoreFoundation/CoreFoundation.h> | 29 #include <CoreFoundation/CoreFoundation.h> |
| 30 #include <OpenGL/OpenGL.h> | 30 #include <OpenGL/OpenGL.h> |
| 31 | 31 |
| 32 #include "base/basictypes.h" | 32 #include "base/basictypes.h" |
| 33 #include "base/mac/scoped_cftyperef.h" | 33 #include "base/mac/scoped_cftyperef.h" |
| 34 #include "base/memory/scoped_ptr.h" | 34 #include "base/memory/scoped_ptr.h" |
| 35 #include "ui/gfx/native_widget_types.h" | 35 #include "ui/gfx/native_widget_types.h" |
| 36 #include "ui/gfx/rect.h" | 36 #include "ui/gfx/rect.h" |
| 37 #include "ui/gfx/surface/transport_dib.h" | 37 #include "ui/surface/transport_dib.h" |
| 38 | 38 |
| 39 namespace webkit { | 39 namespace webkit { |
| 40 namespace npapi { | 40 namespace npapi { |
| 41 struct WebPluginGeometry; | 41 struct WebPluginGeometry; |
| 42 } | 42 } |
| 43 } | 43 } |
| 44 | 44 |
| 45 class AcceleratedSurfaceContainerManagerMac; | 45 class AcceleratedSurfaceContainerManagerMac; |
| 46 | 46 |
| 47 class AcceleratedSurfaceContainerMac { | 47 class AcceleratedSurfaceContainerMac { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 bool visible_; | 148 bool visible_; |
| 149 | 149 |
| 150 // Stores if the plugin's IOSurface has been swapped before. Used to not show | 150 // Stores if the plugin's IOSurface has been swapped before. Used to not show |
| 151 // it before it hasn't been painted to at least once. | 151 // it before it hasn't been painted to at least once. |
| 152 bool was_painted_to_; | 152 bool was_painted_to_; |
| 153 | 153 |
| 154 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); | 154 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ | 157 #endif // CONTENT_BROWSER_RENDERER_HOST_ACCELERATED_SURFACE_CONTAINER_MAC_H_ |
| OLD | NEW |