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

Side by Side Diff: src/gpu/SkGpuDevice.h

Issue 1504723004: Rewrite drawBitmap/ImageNine on top of GrTextureProducer (Closed) Base URL: https://skia.googlesource.com/skia.git@cacher
Patch Set: minor Created 5 years 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 | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkGpuDevice_DEFINED 9 #ifndef SkGpuDevice_DEFINED
10 #define SkGpuDevice_DEFINED 10 #define SkGpuDevice_DEFINED
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 void drawTextureProducerImpl(GrTextureProducer*, 239 void drawTextureProducerImpl(GrTextureProducer*,
240 bool alphaOnly, 240 bool alphaOnly,
241 const SkRect& clippedSrcRect, 241 const SkRect& clippedSrcRect,
242 const SkRect& clippedDstRect, 242 const SkRect& clippedDstRect,
243 SkCanvas::SrcRectConstraint, 243 SkCanvas::SrcRectConstraint,
244 const SkMatrix& viewMatrix, 244 const SkMatrix& viewMatrix,
245 const SkMatrix& srcToDstMatrix, 245 const SkMatrix& srcToDstMatrix,
246 const GrClip&, 246 const GrClip&,
247 const SkPaint&); 247 const SkPaint&);
248 248
249 void drawProducerNine(const SkDraw&, GrTextureProducer*, bool alphaOnly,
250 const SkIRect& center, const SkRect& dst, const SkPain t&);
251
249 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 252 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
250 253
251 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 254 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
252 int sampleCount); 255 int sampleCount);
253 256
254 friend class GrAtlasTextContext; 257 friend class GrAtlasTextContext;
255 friend class SkSurface_Gpu; // for access to surfaceProps 258 friend class SkSurface_Gpu; // for access to surfaceProps
256 typedef SkBaseDevice INHERITED; 259 typedef SkBaseDevice INHERITED;
257 }; 260 };
258 261
259 #endif 262 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698