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> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" | 10 #include "content/browser/renderer_host/accelerated_surface_container_mac.h" |
9 #include "webkit/plugins/npapi/webplugin.h" | 11 #include "webkit/plugins/npapi/webplugin.h" |
10 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
11 | 13 |
12 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() | 14 AcceleratedSurfaceContainerManagerMac::AcceleratedSurfaceContainerManagerMac() |
13 : current_id_(0) { | 15 : current_id_(0) { |
14 } | 16 } |
15 | 17 |
16 AcceleratedSurfaceContainerManagerMac:: | 18 AcceleratedSurfaceContainerManagerMac:: |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 gfx::PluginWindowHandle id) const { | 148 gfx::PluginWindowHandle id) const { |
147 PluginWindowToContainerMap::const_iterator i = | 149 PluginWindowToContainerMap::const_iterator i = |
148 plugin_window_to_container_map_.find(id); | 150 plugin_window_to_container_map_.find(id); |
149 if (i != plugin_window_to_container_map_.end()) | 151 if (i != plugin_window_to_container_map_.end()) |
150 return i->second; | 152 return i->second; |
151 | 153 |
152 LOG(ERROR) << "Request for plugin container for unknown window id " << id; | 154 LOG(ERROR) << "Request for plugin container for unknown window id " << id; |
153 | 155 |
154 return NULL; | 156 return NULL; |
155 } | 157 } |
OLD | NEW |