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

Side by Side Diff: gfx/blit.cc

Issue 6046009: Move base/mac_util.h to base/mac and use the base::mac namespace.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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
« no previous file with comments | « chrome/test/unit/chrome_test_suite.cc ('k') | gfx/scoped_image.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "gfx/blit.h" 5 #include "gfx/blit.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "gfx/point.h" 9 #include "gfx/point.h"
10 #include "gfx/rect.h" 10 #include "gfx/rect.h"
11 #include "skia/ext/platform_canvas.h" 11 #include "skia/ext/platform_canvas.h"
12 #include "skia/ext/platform_device.h" 12 #include "skia/ext/platform_device.h"
13 13
14 #if defined(OS_POSIX) && !defined(OS_MACOSX) 14 #if defined(OS_POSIX) && !defined(OS_MACOSX)
15 #include <cairo/cairo.h> 15 #include <cairo/cairo.h>
16 #endif 16 #endif
17 17
18 #if defined(OS_MACOSX) 18 #if defined(OS_MACOSX)
19 #include "base/mac_util.h"
20 #include "base/mac/scoped_cftyperef.h" 19 #include "base/mac/scoped_cftyperef.h"
21 #endif 20 #endif
22 21
23 namespace gfx { 22 namespace gfx {
24 23
25 namespace { 24 namespace {
26 25
27 // Returns true if the given canvas has any part of itself clipped out or 26 // Returns true if the given canvas has any part of itself clipped out or
28 // any non-identity tranform. 27 // any non-identity tranform.
29 bool HasClipOrTransform(const skia::PlatformCanvas& canvas) { 28 bool HasClipOrTransform(const skia::PlatformCanvas& canvas) {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 memmove(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y), 193 memmove(bitmap.getAddr32(dest_rect.x(), dest_rect.y() + y),
195 bitmap.getAddr32(src_rect.x(), src_rect.y() + y), 194 bitmap.getAddr32(src_rect.x(), src_rect.y() + y),
196 row_bytes); 195 row_bytes);
197 } 196 }
198 } 197 }
199 } 198 }
200 199
201 #endif 200 #endif
202 201
203 } // namespace gfx 202 } // namespace gfx
OLDNEW
« no previous file with comments | « chrome/test/unit/chrome_test_suite.cc ('k') | gfx/scoped_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698