| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_CONTAINER_MAC_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_CONTAINER_MAC_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_CONTAINER_MAC_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_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 15 matching lines...) Expand all Loading... |
| 26 // This class encapsulates some of the management of these data | 26 // This class encapsulates some of the management of these data |
| 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 "app/surface/transport_dib.h" | 32 #include "app/surface/transport_dib.h" |
| 33 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
| 34 #include "base/mac/scoped_cftyperef.h" | 34 #include "base/mac/scoped_cftyperef.h" |
| 35 #include "base/scoped_ptr.h" | 35 #include "base/scoped_ptr.h" |
| 36 #include "gfx/native_widget_types.h" | 36 #include "ui/gfx/native_widget_types.h" |
| 37 #include "gfx/rect.h" | 37 #include "ui/gfx/rect.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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 void ReleaseIOSurface(); | 144 void ReleaseIOSurface(); |
| 145 | 145 |
| 146 // Enqueue our texture for later deletion. | 146 // Enqueue our texture for later deletion. |
| 147 void EnqueueTextureForDeletion(); | 147 void EnqueueTextureForDeletion(); |
| 148 | 148 |
| 149 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); | 149 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurfaceContainerMac); |
| 150 }; | 150 }; |
| 151 | 151 |
| 152 #endif // CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_CONTAINER_MAC_H_ | 152 #endif // CHROME_BROWSER_RENDERER_HOST_GPU_PLUGIN_CONTAINER_MAC_H_ |
| 153 | 153 |
| OLD | NEW |