Lines Matching full:const
41 static SkGpuDevice* Create(GrRenderTarget* target, const SkSurfaceProps*, InitContents);
48 const SkSurfaceProps*, InitContents);
55 static SkGpuDevice* Create(GrContext*, SkBudgeted, const SkImageInfo&,
56 int sampleCount, const SkSurfaceProps*,
61 SkGpuDevice* cloneDevice(const SkSurfaceProps& props) {
68 GrContext* context() const { return fContext; }
77 SkImageInfo imageInfo() const override {
81 void drawPaint(const SkDraw&, const SkPaint& paint) override;
82 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t count,
83 const SkPoint[], const SkPaint& paint) override;
84 virtual void drawRect(const SkDraw&, const SkRect& r,
85 const SkPaint& paint) override;
86 virtual void drawRRect(const SkDraw&, const SkRRect& r,
87 const SkPaint& paint) override;
88 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer,
89 const SkRRect& inner, const SkPaint& paint) override;
90 virtual void drawOval(const SkDraw&, const SkRect& oval,
91 const SkPaint& paint) override;
92 virtual void drawPath(const SkDraw&, const SkPath& path,
93 const SkPaint& paint, const SkMatrix* prePathMatrix,
95 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
96 const SkMatrix&, const SkPaint&) override;
97 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
98 const SkRect* srcOrNull, const SkRect& dst,
99 const SkPaint& paint, SkCanvas::SrcRectConstraint) override;
100 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
101 int x, int y, const SkPaint& paint) override;
102 virtual void drawText(const SkDraw&, const void* text, size_t len,
103 SkScalar x, SkScalar y, const SkPaint&) override;
104 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
105 const SkScalar pos[], int scalarsPerPos,
106 const SkPoint& offset, const SkPaint&) override;
107 virtual void drawTextBlob(const SkDraw&, const SkTextBlob*, SkScalar x, SkScalar y,
108 const SkPaint& paint, SkDrawFilter* drawFilter) override;
109 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, int vertexCount,
110 const SkPoint verts[], const SkPoint texs[],
111 const SkColor colors[], SkXfermode* xmode,
112 const uint16_t indices[], int indexCount,
113 const SkPaint&) override;
114 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const SkRect[],
115 const SkColor[], int count, SkXfermode::Mode, const SkPaint&) override;
116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
117 const SkPaint&) override;
118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, const SkPaint&) override;
119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const SkRect& dst,
120 const SkPaint&, SkCanvas::SrcRectConstraint) override;
122 void drawImageNine(const SkDraw& draw, const SkImage* image, const SkIRect& center,
123 const SkRect& dst, const SkPaint& paint) override;
124 void drawBitmapNine(const SkDraw& draw, const SkBitmap& bitmap, const SkIRect& center,
125 const SkRect& dst, const SkPaint& paint) override;
132 const SkBitmap& onAccessBitmap() override;
135 bool canHandleImageFilter(const SkImageFilter*) override;
136 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
137 const SkImageFilter::Context&,
140 bool filterTexture(GrContext*, GrTexture*, int width, int height, const SkImageFilter*,
141 const SkImageFilter::Context&,
147 void drawTexture(GrTexture*, const SkRect& dst, const SkPaint&);
150 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) override;
151 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) override;
152 bool onShouldDisableLCD(const SkPaint&) const final;
155 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* picture,
156 const SkMatrix*, const SkPaint*) override;
164 SkAutoTUnref<const SkClipStack> fClipStack;
176 static bool CheckAlphaTypeAndGetFlags(const SkImageInfo* info, InitContents init,
179 SkGpuDevice(GrRenderTarget*, int width, int height, const SkSurfaceProps*, unsigned flags);
181 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
183 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override;
187 bool forceConservativeRasterClip() const override { return true; }
190 void prepareDraw(const SkDraw&);
198 bool shouldTileImageID(uint32_t imageID, const SkIRect& imageRect,
199 const SkMatrix& viewMatrix,
200 const GrTextureParams& params,
201 const SkRect* srcRectPtr,
204 SkIRect* clippedSubset) const;
205 bool shouldTileBitmap(const SkBitmap& bitmap,
206 const SkMatrix& viewMatrix,
207 const GrTextureParams& sampler,
208 const SkRect* srcRectPtr,
211 SkIRect* clippedSrcRect) const;
214 bool shouldTileImage(const SkImage* image, const SkRect* srcRectPtr,
216 const SkMatrix& viewMatrix) const;
218 void internalDrawBitmap(const SkBitmap&,
219 const SkMatrix& viewMatrix,
220 const SkRect&,
221 const GrTextureParams& params,
222 const SkPaint& paint,
227 void drawTiledBitmap(const SkBitmap& bitmap,
228 const SkMatrix& viewMatrix,
229 const SkRect& srcRect,
230 const SkIRect& clippedSrcRect,
231 const GrTextureParams& params,
232 const SkPaint& paint,
238 const SkRect* srcRect,
239 const SkRect* dstRect,
241 const SkMatrix& viewMatrix,
242 const GrClip&,
243 const SkPaint&);
246 const SkRect& clippedSrcRect,
247 const SkRect& clippedDstRect,
249 const SkMatrix& viewMatrix,
250 const SkMatrix& srcToDstMatrix,
251 const GrClip&,
252 const SkPaint&);
254 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer,
255 const SkRRect& inner, const SkPaint& paint);
257 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& center,
258 const SkRect& dst, const SkPaint&);
260 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&,