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

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

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SKIA_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_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"
(...skipping 28 matching lines...) Expand all
39 // you should probably be using Create(). This may become private later if 39 // you should probably be using Create(). This may become private later if
40 // we ever have to share state between some native drawing UI and Skia, like 40 // we ever have to share state between some native drawing UI and Skia, like
41 // the Windows and Mac versions of this class do. 41 // the Windows and Mac versions of this class do.
42 explicit BitmapPlatformDevice(const SkBitmap& other); 42 explicit BitmapPlatformDevice(const SkBitmap& other);
43 ~BitmapPlatformDevice() override; 43 ~BitmapPlatformDevice() override;
44 44
45 protected: 45 protected:
46 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 46 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
47 47
48 private: 48 private:
49 PlatformSurface BeginPlatformPaint(const SkMatrix& transform, 49 NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform,
50 const SkIRect& clip_bounds) override; 50 const SkIRect& clip_bounds) override;
51 51
52 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); 52 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
53 53
54 friend class ScopedPlatformPaint; 54 friend class ScopedPlatformPaint;
55 }; 55 };
56 56
57 } // namespace skia 57 } // namespace skia
58 58
59 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ 59 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_mac_unittest.cc ('k') | skia/ext/bitmap_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698