int width, int height,
bool is_opaque);
- virtual ~BitmapPlatformDevice();
+ ~BitmapPlatformDevice() override;
// PlatformDevice overrides
- virtual CGContextRef GetBitmapContext() OVERRIDE;
- virtual void DrawToNativeContext(CGContextRef context, int x, int y,
- const CGRect* src_rect) OVERRIDE;
+ CGContextRef GetBitmapContext() override;
+ void DrawToNativeContext(CGContextRef context,
+ int x,
+ int y,
+ const CGRect* src_rect) override;
// SkBaseDevice overrides
- virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
- const SkClipStack&) OVERRIDE;
+ void setMatrixClip(const SkMatrix& transform,
+ const SkRegion& region,
+ const SkClipStack&) override;
protected:
BitmapPlatformDevice(CGContextRef context,
const SkBitmap& bitmap);
- virtual SkBaseDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
- int height, bool isOpaque,
- Usage usage) OVERRIDE;
+ SkBaseDevice* onCreateDevice(const SkImageInfo& info, Usage usage) override;
private:
void ReleaseBitmapContext();