OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/skia_utils_mac.h" | 5 #include "skia/ext/skia_utils_mac.h" |
6 | 6 |
7 #import <AppKit/AppKit.h> | 7 #import <AppKit/AppKit.h> |
| 8 #include <stdint.h> |
8 | 9 |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/mac/scoped_cftyperef.h" | 11 #include "base/mac/scoped_cftyperef.h" |
11 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "skia/ext/bitmap_platform_device_mac.h" | 14 #include "skia/ext/bitmap_platform_device_mac.h" |
14 #include "skia/ext/platform_canvas.h" | 15 #include "skia/ext/platform_canvas.h" |
15 #include "third_party/skia/include/core/SkRegion.h" | 16 #include "third_party/skia/include/core/SkRegion.h" |
16 #include "third_party/skia/include/utils/mac/SkCGUtils.h" | 17 #include "third_party/skia/include/utils/mac/SkCGUtils.h" |
17 | 18 |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 CGContextConcatCTM(cgContext_, SkMatrixToCGAffineTransform(matrix)); | 461 CGContextConcatCTM(cgContext_, SkMatrixToCGAffineTransform(matrix)); |
461 | 462 |
462 return cgContext_; | 463 return cgContext_; |
463 } | 464 } |
464 | 465 |
465 bool SkiaBitLocker::hasEmptyClipRegion() const { | 466 bool SkiaBitLocker::hasEmptyClipRegion() const { |
466 return canvas_->isClipEmpty(); | 467 return canvas_->isClipEmpty(); |
467 } | 468 } |
468 | 469 |
469 } // namespace skia | 470 } // namespace skia |
OLD | NEW |