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

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

Issue 1413993006: Remove unused BitmapPlatformDevice::CreateAndClear() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | skia/ext/bitmap_platform_device_cairo.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_CAIRO_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // 65 //
66 // This object takes ownership of @cairo. 66 // This object takes ownership of @cairo.
67 BitmapPlatformDevice(const SkBitmap& other, cairo_t* cairo); 67 BitmapPlatformDevice(const SkBitmap& other, cairo_t* cairo);
68 ~BitmapPlatformDevice() override; 68 ~BitmapPlatformDevice() override;
69 69
70 // Constructs a device with size |width| * |height| with contents initialized 70 // Constructs a device with size |width| * |height| with contents initialized
71 // to zero. |is_opaque| should be set if the caller knows the bitmap will be 71 // to zero. |is_opaque| should be set if the caller knows the bitmap will be
72 // completely opaque and allows some optimizations. 72 // completely opaque and allows some optimizations.
73 static BitmapPlatformDevice* Create(int width, int height, bool is_opaque); 73 static BitmapPlatformDevice* Create(int width, int height, bool is_opaque);
74 74
75 // Performs the same construction as Create.
76 // Other ports require a separate construction routine because Create does not
77 // initialize the bitmap to 0.
78 static BitmapPlatformDevice* CreateAndClear(int width, int height,
79 bool is_opaque);
80
81 // This doesn't take ownership of |data|. If |data| is NULL, the contents 75 // This doesn't take ownership of |data|. If |data| is NULL, the contents
82 // of the device are initialized to 0. 76 // of the device are initialized to 0.
83 static BitmapPlatformDevice* Create(int width, int height, bool is_opaque, 77 static BitmapPlatformDevice* Create(int width, int height, bool is_opaque,
84 uint8_t* data); 78 uint8_t* data);
85 79
86 // Overridden from SkBaseDevice: 80 // Overridden from SkBaseDevice:
87 void setMatrixClip(const SkMatrix& transform, 81 void setMatrixClip(const SkMatrix& transform,
88 const SkRegion& region, 82 const SkRegion& region,
89 const SkClipStack&) override; 83 const SkClipStack&) override;
90 84
(...skipping 30 matching lines...) Expand all
121 115
122 // The current clipping 116 // The current clipping
123 SkRegion clip_region_; 117 SkRegion clip_region_;
124 118
125 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice); 119 DISALLOW_COPY_AND_ASSIGN(BitmapPlatformDevice);
126 }; 120 };
127 121
128 } // namespace skia 122 } // namespace skia
129 123
130 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_ 124 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_CAIRO_H_
OLDNEW
« no previous file with comments | « no previous file | skia/ext/bitmap_platform_device_cairo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698