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

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

Issue 817153002: Switch users of foundation_util.h to include it directly and clean up uses of mac_util.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « content/renderer/npapi/webplugin_delegate_proxy.cc ('k') | content/renderer/renderer_main.cc » ('j') | 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) 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"
(...skipping 21 matching lines...) Expand all
32 #include "third_party/skia/include/core/SkBitmap.h" 32 #include "third_party/skia/include/core/SkBitmap.h"
33 #include "ui/gfx/blit.h" 33 #include "ui/gfx/blit.h"
34 #include "ui/gfx/point_conversions.h" 34 #include "ui/gfx/point_conversions.h"
35 #include "ui/gfx/rect.h" 35 #include "ui/gfx/rect.h"
36 #include "ui/gfx/rect_conversions.h" 36 #include "ui/gfx/rect_conversions.h"
37 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 37 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
38 #include "ui/gfx/size_conversions.h" 38 #include "ui/gfx/size_conversions.h"
39 #include "ui/gfx/skia_util.h" 39 #include "ui/gfx/skia_util.h"
40 40
41 #if defined(OS_MACOSX) 41 #if defined(OS_MACOSX)
42 #include "base/mac/mac_util.h"
43 #include "base/mac/scoped_cftyperef.h" 42 #include "base/mac/scoped_cftyperef.h"
44 #endif 43 #endif
45 44
46 using ppapi::thunk::EnterResourceNoLock; 45 using ppapi::thunk::EnterResourceNoLock;
47 using ppapi::thunk::PPB_ImageData_API; 46 using ppapi::thunk::PPB_ImageData_API;
48 47
49 namespace content { 48 namespace content {
50 49
51 namespace { 50 namespace {
52 51
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 gfx::Point inverse_scaled_point = 815 gfx::Point inverse_scaled_point =
817 gfx::ToFlooredPoint(gfx::ScalePoint(*delta, inverse_scale)); 816 gfx::ToFlooredPoint(gfx::ScalePoint(*delta, inverse_scale));
818 if (original_delta != inverse_scaled_point) 817 if (original_delta != inverse_scaled_point)
819 return false; 818 return false;
820 } 819 }
821 820
822 return true; 821 return true;
823 } 822 }
824 823
825 } // namespace content 824 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/npapi/webplugin_delegate_proxy.cc ('k') | content/renderer/renderer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698