| OLD | NEW |
| 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/platform_canvas_mac.h" | 5 #include "skia/ext/platform_canvas_mac.h" |
| 6 | 6 |
| 7 #include "skia/ext/bitmap_platform_device_mac.h" | 7 #include "skia/ext/bitmap_platform_device_mac.h" |
| 8 #include "SkTypes.h" | 8 #include "third_party/skia/include/core/SkTypes.h" |
| 9 | 9 |
| 10 namespace skia { | 10 namespace skia { |
| 11 | 11 |
| 12 PlatformCanvasMac::PlatformCanvasMac() : SkCanvas() { | 12 PlatformCanvasMac::PlatformCanvasMac() : SkCanvas() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 PlatformCanvasMac::PlatformCanvasMac(int width, int height, bool is_opaque) | 15 PlatformCanvasMac::PlatformCanvasMac(int width, int height, bool is_opaque) |
| 16 : SkCanvas() { | 16 : SkCanvas() { |
| 17 initialize(width, height, is_opaque); | 17 initialize(width, height, is_opaque); |
| 18 } | 18 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 SkASSERT(false); | 110 SkASSERT(false); |
| 111 return NULL; | 111 return NULL; |
| 112 } | 112 } |
| 113 | 113 |
| 114 // static | 114 // static |
| 115 size_t PlatformCanvasMac::StrideForWidth(unsigned width) { | 115 size_t PlatformCanvasMac::StrideForWidth(unsigned width) { |
| 116 return 4 * width; | 116 return 4 * width; |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace skia | 119 } // namespace skia |
| OLD | NEW |