Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: chrome/browser/renderer_host/accelerated_surface_container_manager_mac.cc

Issue 5961004: Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/renderer_host/accelerated_surface_container_manager_mac .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 "chrome/browser/renderer_host/accelerated_surface_container_mac.h"
9 #include "webkit/plugins/npapi/webplugin.h" 9 #include "webkit/glue/plugins/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
19 AcceleratedSurfaceContainerManagerMac::AllocateFakePluginWindowHandle( 19 AcceleratedSurfaceContainerManagerMac::AllocateFakePluginWindowHandle(
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 int32 height, 79 int32 height,
80 TransportDIB::Handle transport_dib) { 80 TransportDIB::Handle transport_dib) {
81 AutoLock lock(lock_); 81 AutoLock lock(lock_);
82 82
83 AcceleratedSurfaceContainerMac* container = MapIDToContainer(id); 83 AcceleratedSurfaceContainerMac* container = MapIDToContainer(id);
84 if (container) 84 if (container)
85 container->SetSizeAndTransportDIB(width, height, transport_dib); 85 container->SetSizeAndTransportDIB(width, height, transport_dib);
86 } 86 }
87 87
88 void AcceleratedSurfaceContainerManagerMac::SetPluginContainerGeometry( 88 void AcceleratedSurfaceContainerManagerMac::SetPluginContainerGeometry(
89 const webkit::npapi::WebPluginGeometry& move) { 89 const webkit_glue::WebPluginGeometry& move) {
90 AutoLock lock(lock_); 90 AutoLock lock(lock_);
91 91
92 AcceleratedSurfaceContainerMac* container = MapIDToContainer(move.window); 92 AcceleratedSurfaceContainerMac* container = MapIDToContainer(move.window);
93 if (container) 93 if (container)
94 container->SetGeometry(move); 94 container->SetGeometry(move);
95 } 95 }
96 96
97 void AcceleratedSurfaceContainerManagerMac::Draw(CGLContextObj context, 97 void AcceleratedSurfaceContainerManagerMac::Draw(CGLContextObj context,
98 gfx::PluginWindowHandle id) { 98 gfx::PluginWindowHandle id) {
99 AutoLock lock(lock_); 99 AutoLock lock(lock_);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698