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

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

Issue 115412: Fix Skia includes to use the whole path name. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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/SkMemory_new_handler.cpp ('k') | skia/ext/bitmap_platform_device_win.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) 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"
10 #include "SkRegion.h"
11 #include "SkTypes.h"
12 #include "SkUtils.h"
13
14 #include "base/ref_counted.h" 9 #include "base/ref_counted.h"
15 #include "skia/ext/skia_utils_mac.h" 10 #include "skia/ext/skia_utils_mac.h"
11 #include "third_party/skia/include/core/SkMatrix.h"
12 #include "third_party/skia/include/core/SkRegion.h"
13 #include "third_party/skia/include/core/SkTypes.h"
14 #include "third_party/skia/include/core/SkUtils.h"
16 15
17 namespace skia { 16 namespace skia {
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|.
24 bool Constrain(int available_size, int* position, int *size) { 23 bool Constrain(int available_size, int* position, int *size) {
25 if (*size < -2) 24 if (*size < -2)
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 for (int i = 0; i < height; i++) { 288 for (int i = 0; i < height; i++) {
290 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x; 289 size_t offset = (i + bitmap_start_y) * row_words + bitmap_start_x;
291 for (int j = 0; j < width; j++) { 290 for (int j = 0; j < width; j++) {
292 adjustor(data + offset + j); 291 adjustor(data + offset + j);
293 } 292 }
294 } 293 }
295 } 294 }
296 } 295 }
297 296
298 } // namespace skia 297 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/SkMemory_new_handler.cpp ('k') | skia/ext/bitmap_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698