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

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

Issue 48105: Remove unneeded uses of base/ref_counted.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « skia/ext/bitmap_platform_device_mac.h ('k') | webkit/glue/plugins/plugin_list.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) 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 "skia/ext/bitmap_platform_device_mac.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 "SkTypes.h" 11 #include "SkTypes.h"
12 #include "SkUtils.h" 12 #include "SkUtils.h"
13 13
14 #include "base/ref_counted.h"
14 #include "skia/ext/skia_utils_mac.h" 15 #include "skia/ext/skia_utils_mac.h"
15 16
16 namespace skia { 17 namespace skia {
17 18
18 namespace { 19 namespace {
19 20
20 // Constrains position and size to fit within available_size. If |size| is -1, 21 // Constrains position and size to fit within available_size. If |size| is -1,
21 // all the |available_size| is used. Returns false if the position is out of 22 // all the |available_size| is used. Returns false if the position is out of
22 // |available_size|. 23 // |available_size|.
23 bool Constrain(int available_size, int* position, int *size) { 24 bool Constrain(int available_size, int* position, int *size) {
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 for (int i = 0; i < height; i++) { 289 for (int i = 0; i < height; i++) {
289 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x; 290 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x;
290 for (int j = 0; j < width; j++) { 291 for (int j = 0; j < width; j++) {
291 adjustor(data + offset + j); 292 adjustor(data + offset + j);
292 } 293 }
293 } 294 }
294 } 295 }
295 } 296 }
296 297
297 } // namespace skia 298 } // namespace skia
298
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.h ('k') | webkit/glue/plugins/plugin_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698