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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 11138024: Simplify platform_canvas.h by recognizing that PlatformCanvas does not actually extend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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) 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/renderer/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include "base/json/json_string_value_serializer.h" 7 #include "base/json/json_string_value_serializer.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 delete damage_buffer_; 755 delete damage_buffer_;
756 #else 756 #else
757 RenderProcess::current()->FreeTransportDIB(damage_buffer_); 757 RenderProcess::current()->FreeTransportDIB(damage_buffer_);
758 damage_buffer_ = NULL; 758 damage_buffer_ = NULL;
759 #endif 759 #endif
760 } 760 }
761 761
762 TransportDIB* BrowserPlugin::PopulateResizeGuestParameters( 762 TransportDIB* BrowserPlugin::PopulateResizeGuestParameters(
763 BrowserPluginHostMsg_ResizeGuest_Params* params, 763 BrowserPluginHostMsg_ResizeGuest_Params* params,
764 int view_width, int view_height) { 764 int view_width, int view_height) {
765 const size_t stride = skia::PlatformCanvas::StrideForWidth(view_width); 765 const size_t stride = skia::PlatformCanvasStrideForWidth(view_width);
766 // Make sure the size of the damage buffer is at least four bytes so that we 766 // Make sure the size of the damage buffer is at least four bytes so that we
767 // can fit in a magic word to verify that the memory is shared correctly. 767 // can fit in a magic word to verify that the memory is shared correctly.
768 size_t size = 768 size_t size =
769 std::max(sizeof(unsigned int), 769 std::max(sizeof(unsigned int),
770 static_cast<size_t>(view_height * 770 static_cast<size_t>(view_height *
771 stride * 771 stride *
772 GetDeviceScaleFactor() * 772 GetDeviceScaleFactor() *
773 GetDeviceScaleFactor())); 773 GetDeviceScaleFactor()));
774 774
775 // Don't drop the old damage buffer until after we've made sure that the 775 // Don't drop the old damage buffer until after we've made sure that the
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 void* notify_data) { 922 void* notify_data) {
923 } 923 }
924 924
925 void BrowserPlugin::didFailLoadingFrameRequest( 925 void BrowserPlugin::didFailLoadingFrameRequest(
926 const WebKit::WebURL& url, 926 const WebKit::WebURL& url,
927 void* notify_data, 927 void* notify_data,
928 const WebKit::WebURLError& error) { 928 const WebKit::WebURLError& error) {
929 } 929 }
930 930
931 } // namespace content 931 } // namespace content
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | content/renderer/pepper/pepper_platform_image_2d_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698