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 #include "chrome/browser/renderer_host/accelerated_surface_container_manager_mac
.h" | 5 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma
c.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/renderer_host/accelerated_surface_container_mac.h" | 8 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" |
9 #include "webkit/plugins/npapi/webplugin.h" | 9 #include "webkit/plugins/npapi/webplugin.h" |
10 | 10 |
11 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() | 11 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() |
12 : current_id_(0), | 12 : current_id_(0), |
13 root_container_(NULL), | 13 root_container_(NULL), |
14 root_container_handle_(gfx::kNullPluginWindow), | 14 root_container_handle_(gfx::kNullPluginWindow), |
15 gpu_rendering_active_(false) { | 15 gpu_rendering_active_(false) { |
16 } | 16 } |
17 | 17 |
18 gfx::PluginWindowHandle | 18 gfx::PluginWindowHandle |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 gfx::PluginWindowHandle id) const { | 164 gfx::PluginWindowHandle id) const { |
165 PluginWindowToContainerMap::const_iterator i = | 165 PluginWindowToContainerMap::const_iterator i = |
166 plugin_window_to_container_map_.find(id); | 166 plugin_window_to_container_map_.find(id); |
167 if (i != plugin_window_to_container_map_.end()) | 167 if (i != plugin_window_to_container_map_.end()) |
168 return i->second; | 168 return i->second; |
169 | 169 |
170 LOG(ERROR) << "Request for plugin container for unknown window id " << id; | 170 LOG(ERROR) << "Request for plugin container for unknown window id " << id; |
171 | 171 |
172 return NULL; | 172 return NULL; |
173 } | 173 } |
OLD | NEW |