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

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

Issue 1013453002: remove deprecated onCreateCompatibleDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_skia.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 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "skia/ext/platform_device.h" 10 #include "skia/ext/platform_device.h"
(...skipping 22 matching lines...) Expand all
33 // Create a BitmapPlatformDevice from an already constructed bitmap; 33 // Create a BitmapPlatformDevice from an already constructed bitmap;
34 // you should probably be using Create(). This may become private later if 34 // you should probably be using Create(). This may become private later if
35 // we ever have to share state between some native drawing UI and Skia, like 35 // we ever have to share state between some native drawing UI and Skia, like
36 // the Windows and Mac versions of this class do. 36 // the Windows and Mac versions of this class do.
37 explicit BitmapPlatformDevice(const SkBitmap& other); 37 explicit BitmapPlatformDevice(const SkBitmap& other);
38 ~BitmapPlatformDevice() override; 38 ~BitmapPlatformDevice() override;
39 39
40 PlatformSurface BeginPlatformPaint() override; 40 PlatformSurface BeginPlatformPaint() override;
41 41
42 protected: 42 protected:
43 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo& info) override;
44 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 43 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
45 44
46 private: 45 private:
47 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); 46 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
48 }; 47 };
49 48
50 } // namespace skia 49 } // namespace skia
51 50
52 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_ 51 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_SKIA_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | skia/ext/bitmap_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698