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

Side by Side Diff: content/renderer/pepper/pepper_graphics_2d_host.cc

Issue 20165002: Move webkit/plugins/ppapi to content/renderer/pepper. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: more more clang fun Created 7 years, 4 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
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/pepper/pepper_graphics_2d_host.h" 5 #include "content/renderer/pepper/pepper_graphics_2d_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "content/public/renderer/renderer_ppapi_host.h" 11 #include "content/public/renderer/renderer_ppapi_host.h"
12 #include "content/renderer/pepper/common.h"
13 #include "content/renderer/pepper/gfx_conversion.h"
14 #include "content/renderer/pepper/ppapi_plugin_instance_impl.h"
15 #include "content/renderer/pepper/ppb_image_data_impl.h"
16 #include "content/renderer/pepper/resource_helper.h"
12 #include "ppapi/c/pp_bool.h" 17 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_errors.h" 18 #include "ppapi/c/pp_errors.h"
14 #include "ppapi/c/pp_rect.h" 19 #include "ppapi/c/pp_rect.h"
15 #include "ppapi/c/pp_resource.h" 20 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/host/dispatch_host_message.h" 21 #include "ppapi/host/dispatch_host_message.h"
17 #include "ppapi/host/host_message_context.h" 22 #include "ppapi/host/host_message_context.h"
18 #include "ppapi/host/ppapi_host.h" 23 #include "ppapi/host/ppapi_host.h"
19 #include "ppapi/proxy/ppapi_messages.h" 24 #include "ppapi/proxy/ppapi_messages.h"
20 #include "ppapi/thunk/enter.h" 25 #include "ppapi/thunk/enter.h"
21 #include "skia/ext/platform_canvas.h" 26 #include "skia/ext/platform_canvas.h"
22 #include "third_party/skia/include/core/SkBitmap.h" 27 #include "third_party/skia/include/core/SkBitmap.h"
23 #include "ui/gfx/blit.h" 28 #include "ui/gfx/blit.h"
24 #include "ui/gfx/point.h" 29 #include "ui/gfx/point.h"
25 #include "ui/gfx/point_conversions.h" 30 #include "ui/gfx/point_conversions.h"
26 #include "ui/gfx/rect.h" 31 #include "ui/gfx/rect.h"
27 #include "ui/gfx/rect_conversions.h" 32 #include "ui/gfx/rect_conversions.h"
28 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 33 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
29 #include "ui/gfx/size_conversions.h" 34 #include "ui/gfx/size_conversions.h"
30 #include "ui/gfx/skia_util.h" 35 #include "ui/gfx/skia_util.h"
31 #include "webkit/plugins/ppapi/common.h"
32 #include "webkit/plugins/ppapi/gfx_conversion.h"
33 #include "webkit/plugins/ppapi/ppapi_plugin_instance_impl.h"
34 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
35 #include "webkit/plugins/ppapi/resource_helper.h"
36 36
37 #if defined(OS_MACOSX) 37 #if defined(OS_MACOSX)
38 #include "base/mac/mac_util.h" 38 #include "base/mac/mac_util.h"
39 #include "base/mac/scoped_cftyperef.h" 39 #include "base/mac/scoped_cftyperef.h"
40 #endif 40 #endif
41 41
42 using ppapi::thunk::EnterResourceNoLock; 42 using ppapi::thunk::EnterResourceNoLock;
43 using ppapi::thunk::PPB_ImageData_API; 43 using ppapi::thunk::PPB_ImageData_API;
44 using webkit::ppapi::ImageDataAutoMapper; 44 using webkit::ppapi::ImageDataAutoMapper;
45 using webkit::ppapi::PPB_ImageData_Impl; 45 using webkit::ppapi::PPB_ImageData_Impl;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 gfx::Point inverse_scaled_point = 762 gfx::Point inverse_scaled_point =
763 gfx::ToFlooredPoint(gfx::ScalePoint(*delta, inverse_scale)); 763 gfx::ToFlooredPoint(gfx::ScalePoint(*delta, inverse_scale));
764 if (original_delta != inverse_scaled_point) 764 if (original_delta != inverse_scaled_point)
765 return false; 765 return false;
766 } 766 }
767 767
768 return true; 768 return true;
769 } 769 }
770 770
771 } // namespace content 771 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.h ('k') | content/renderer/pepper/pepper_in_process_resource_creation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698