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

Side by Side Diff: skia/ext/bitmap_platform_device_mac.cc

Issue 11357: Move the platform files form port to skia for Mac only. Hopefully this won't ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "config.h" 5 #include "skia/ext/bitmap_platform_device_mac.h"
6 6
7 #include <time.h> 7 #include <time.h>
8 8
9 #include "SkMatrix.h" 9 #include "SkMatrix.h"
10 #include "SkRegion.h" 10 #include "SkRegion.h"
11 #include "SkUtils.h" 11 #include "SkUtils.h"
12 12
13 #include "base/gfx/bitmap_platform_device_mac.h"
14 #include "base/gfx/skia_utils_mac.h" 13 #include "base/gfx/skia_utils_mac.h"
15 #include "base/logging.h" 14 #include "base/logging.h"
16 15
17 namespace gfx { 16 namespace gfx {
18 17
19 namespace { 18 namespace {
20 19
21 // Constrains position and size to fit within available_size. If |size| is -1, 20 // Constrains position and size to fit within available_size. If |size| is -1,
22 // all the |available_size| is used. Returns false if the position is out of 21 // all the |available_size| is used. Returns false if the position is out of
23 // |available_size|. 22 // |available_size|.
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x; 281 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x;
283 for (int j = 0; j < width; j++) { 282 for (int j = 0; j < width; j++) {
284 adjustor(data + offset + j); 283 adjustor(data + offset + j);
285 } 284 }
286 } 285 }
287 } 286 }
288 } 287 }
289 288
290 } // namespace gfx 289 } // namespace gfx
291 290
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698