| 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 "webkit/plugins/npapi/webplugin_impl.h" | 5 #include "webkit/plugins/npapi/webplugin_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/linked_ptr.h" | 9 #include "base/memory/linked_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 if (clients_[i].client) | 747 if (clients_[i].client) |
| 748 clients_[i].client->DidFail(); | 748 clients_[i].client->DidFail(); |
| 749 } | 749 } |
| 750 } | 750 } |
| 751 break; | 751 break; |
| 752 } | 752 } |
| 753 } | 753 } |
| 754 } | 754 } |
| 755 | 755 |
| 756 #if defined(OS_MACOSX) | 756 #if defined(OS_MACOSX) |
| 757 WebPluginAcceleratedSurface* WebPluginImpl::GetAcceleratedSurface( |
| 758 gfx::GpuPreference gpu_preference) { |
| 759 return NULL; |
| 760 } |
| 761 |
| 757 void WebPluginImpl::AcceleratedPluginEnabledRendering() { | 762 void WebPluginImpl::AcceleratedPluginEnabledRendering() { |
| 758 } | 763 } |
| 759 | 764 |
| 760 void WebPluginImpl::AcceleratedPluginAllocatedIOSurface(int32 width, | 765 void WebPluginImpl::AcceleratedPluginAllocatedIOSurface(int32 width, |
| 761 int32 height, | 766 int32 height, |
| 762 uint32 surface_id) { | 767 uint32 surface_id) { |
| 763 next_io_surface_allocated_ = true; | 768 next_io_surface_allocated_ = true; |
| 764 next_io_surface_width_ = width; | 769 next_io_surface_width_ = width; |
| 765 next_io_surface_height_ = height; | 770 next_io_surface_height_ = height; |
| 766 next_io_surface_id_ = surface_id; | 771 next_io_surface_id_ = surface_id; |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 webframe_->setReferrerForRequest(*request, plugin_url_); | 1402 webframe_->setReferrerForRequest(*request, plugin_url_); |
| 1398 break; | 1403 break; |
| 1399 | 1404 |
| 1400 default: | 1405 default: |
| 1401 break; | 1406 break; |
| 1402 } | 1407 } |
| 1403 } | 1408 } |
| 1404 | 1409 |
| 1405 } // namespace npapi | 1410 } // namespace npapi |
| 1406 } // namespace webkit | 1411 } // namespace webkit |
| OLD | NEW |