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

Side by Side Diff: chrome/renderer/webplugin_delegate_proxy.cc

Issue 203013: Fix regression of transparent plugins not displaying correctly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/renderer/webplugin_delegate_proxy.h" 5 #include "chrome/renderer/webplugin_delegate_proxy.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/gfx/canvas.h" 9 #include "app/gfx/canvas.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 param.windowless_buffer = TransportDIB::DefaultHandleValue(); 419 param.windowless_buffer = TransportDIB::DefaultHandleValue();
420 param.background_buffer = TransportDIB::DefaultHandleValue(); 420 param.background_buffer = TransportDIB::DefaultHandleValue();
421 421
422 #if defined(OS_POSIX) 422 #if defined(OS_POSIX)
423 // If we're using POSIX mmap'd TransportDIBs, sending the handle across 423 // If we're using POSIX mmap'd TransportDIBs, sending the handle across
424 // IPC establishes a new mapping rather than just sending a window ID, 424 // IPC establishes a new mapping rather than just sending a window ID,
425 // so only do so if we've actually recreated the shared memory bitmaps. 425 // so only do so if we've actually recreated the shared memory bitmaps.
426 if (bitmaps_changed) 426 if (bitmaps_changed)
427 #endif 427 #endif
428 { 428 {
429 if (transport_store_.get()) { 429 if (transport_store_.get())
430 param.windowless_buffer = transport_store_->handle(); 430 param.windowless_buffer = transport_store_->handle();
431 } else if (background_store_.get()) { 431
432 if (background_store_.get())
432 param.background_buffer = background_store_->handle(); 433 param.background_buffer = background_store_->handle();
433 }
434 } 434 }
435 435
436 IPC::Message* msg; 436 IPC::Message* msg;
437 #if defined (OS_WIN) 437 #if defined (OS_WIN)
438 std::wstring filename = StringToLowerASCII(info_.path.BaseName().value()); 438 std::wstring filename = StringToLowerASCII(info_.path.BaseName().value());
439 if (info_.name.find(L"Windows Media Player") != std::wstring::npos) { 439 if (info_.name.find(L"Windows Media Player") != std::wstring::npos) {
440 // Need to update geometry synchronously with WMP, otherwise if a site 440 // Need to update geometry synchronously with WMP, otherwise if a site
441 // scripts the plugin to start playing while it's in the middle of handling 441 // scripts the plugin to start playing while it's in the middle of handling
442 // an update geometry message, videos don't play. See urls in bug 20260. 442 // an update geometry message, videos don't play. See urls in bug 20260.
443 msg = new PluginMsg_UpdateGeometrySync(instance_id_, param); 443 msg = new PluginMsg_UpdateGeometrySync(instance_id_, param);
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { 1064 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) {
1065 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), 1065 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(),
1066 existing_stream, notify_needed, 1066 existing_stream, notify_needed,
1067 notify_data); 1067 notify_data);
1068 } 1068 }
1069 1069
1070 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, 1070 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id,
1071 bool defer) { 1071 bool defer) {
1072 plugin_->SetDeferResourceLoading(resource_id, defer); 1072 plugin_->SetDeferResourceLoading(resource_id, defer);
1073 } 1073 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698