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

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

Issue 1839113002: Limit manual control of platform painting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "skia/ext/platform_canvas.h"
12 #include "skia/ext/platform_device.h" 13 #include "skia/ext/platform_device.h"
13 #include "skia/ext/refptr.h" 14 #include "skia/ext/refptr.h"
14 15
15 namespace skia { 16 namespace skia {
16 17
17 // A device is basically a wrapper around SkBitmap that provides a surface for 18 // A device is basically a wrapper around SkBitmap that provides a surface for
18 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also 19 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also
19 // write to. BitmapPlatformDevice creates a bitmap using 20 // write to. BitmapPlatformDevice creates a bitmap using
20 // CGCreateBitmapContext() in a format that Skia supports and can then use this 21 // CGCreateBitmapContext() in a format that Skia supports and can then use this
21 // to draw text into, etc. This pixel data is provided to the bitmap that the 22 // to draw text into, etc. This pixel data is provided to the bitmap that the
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 SkMatrix transform_; 88 SkMatrix transform_;
88 89
89 // The current clipping 90 // The current clipping
90 SkRegion clip_region_; 91 SkRegion clip_region_;
91 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); 92 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
92 }; 93 };
93 94
94 } // namespace skia 95 } // namespace skia
95 96
96 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_ 97 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698