| 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 "content/renderer/pepper/pepper_graphics_2d_host.h" | 5 #include "content/renderer/pepper/pepper_graphics_2d_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "cc/resources/shared_bitmap.h" | 17 #include "cc/resources/shared_bitmap.h" |
| 18 #include "cc/resources/texture_mailbox.h" | 18 #include "cc/resources/texture_mailbox.h" |
| 19 #include "content/child/child_shared_bitmap_manager.h" | 19 #include "content/child/child_shared_bitmap_manager.h" |
| 20 #include "content/public/renderer/render_thread.h" | 20 #include "content/public/renderer/render_thread.h" |
| 21 #include "content/public/renderer/renderer_ppapi_host.h" | 21 #include "content/public/renderer/renderer_ppapi_host.h" |
| 22 #include "content/renderer/pepper/gfx_conversion.h" | 22 #include "content/renderer/pepper/gfx_conversion.h" |
| 23 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 23 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 24 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" | 24 #include "content/renderer/pepper/plugin_instance_throttler_impl.h" |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 gfx::Point inverse_scaled_point = | 831 gfx::Point inverse_scaled_point = |
| 832 gfx::ScaleToFlooredPoint(*delta, inverse_scale); | 832 gfx::ScaleToFlooredPoint(*delta, inverse_scale); |
| 833 if (original_delta != inverse_scaled_point) | 833 if (original_delta != inverse_scaled_point) |
| 834 return false; | 834 return false; |
| 835 } | 835 } |
| 836 | 836 |
| 837 return true; | 837 return true; |
| 838 } | 838 } |
| 839 | 839 |
| 840 } // namespace content | 840 } // namespace content |
| OLD | NEW |