| 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 "content/browser/renderer_host/accelerated_surface_container_manager_ma
     c.h" | 5 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
     c.h" | 
| 6 | 6 | 
| 7 #include <OpenGL/gl.h> | 7 #include <OpenGL/gl.h> | 
| 8 | 8 | 
| 9 #include "base/logging.h" | 9 #include "base/logging.h" | 
| 10 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" | 10 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" | 
| 11 #include "webkit/plugins/npapi/webplugin.h" | 11 #include "webkit/plugins/npapi/webplugin.h" | 
| 12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" | 
| 13 | 13 | 
|  | 14 namespace content { | 
|  | 15 | 
| 14 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() | 16 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() | 
| 15     : current_id_(0) { | 17     : current_id_(0) { | 
| 16 } | 18 } | 
| 17 | 19 | 
| 18 AcceleratedSurfaceContainerManagerMac:: | 20 AcceleratedSurfaceContainerManagerMac:: | 
| 19     ~AcceleratedSurfaceContainerManagerMac() {} | 21     ~AcceleratedSurfaceContainerManagerMac() {} | 
| 20 | 22 | 
| 21 gfx::PluginWindowHandle | 23 gfx::PluginWindowHandle | 
| 22 AcceleratedSurfaceContainerManagerMac::AllocateFakePluginWindowHandle( | 24 AcceleratedSurfaceContainerManagerMac::AllocateFakePluginWindowHandle( | 
| 23     bool opaque, bool root) { | 25     bool opaque, bool root) { | 
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 148         gfx::PluginWindowHandle id) const { | 150         gfx::PluginWindowHandle id) const { | 
| 149   PluginWindowToContainerMap::const_iterator i = | 151   PluginWindowToContainerMap::const_iterator i = | 
| 150       plugin_window_to_container_map_.find(id); | 152       plugin_window_to_container_map_.find(id); | 
| 151   if (i != plugin_window_to_container_map_.end()) | 153   if (i != plugin_window_to_container_map_.end()) | 
| 152     return i->second; | 154     return i->second; | 
| 153 | 155 | 
| 154   LOG(ERROR) << "Request for plugin container for unknown window id " << id; | 156   LOG(ERROR) << "Request for plugin container for unknown window id " << id; | 
| 155 | 157 | 
| 156   return NULL; | 158   return NULL; | 
| 157 } | 159 } | 
|  | 160 | 
|  | 161 }  // namespace content | 
| OLD | NEW | 
|---|