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

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

Issue 1733993003: Mv DRRect drawing code from GrDrawContext into SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix bug Created 4 years, 10 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 | « src/gpu/GrDrawContext.cpp ('k') | 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 void drawTextureProducerImpl(GrTextureProducer*, 245 void drawTextureProducerImpl(GrTextureProducer*,
246 const SkRect& clippedSrcRect, 246 const SkRect& clippedSrcRect,
247 const SkRect& clippedDstRect, 247 const SkRect& clippedDstRect,
248 SkCanvas::SrcRectConstraint, 248 SkCanvas::SrcRectConstraint,
249 const SkMatrix& viewMatrix, 249 const SkMatrix& viewMatrix,
250 const SkMatrix& srcToDstMatrix, 250 const SkMatrix& srcToDstMatrix,
251 const GrClip&, 251 const GrClip&,
252 const SkPaint&); 252 const SkPaint&);
253 253
254 bool drawFilledDRRect(const SkMatrix& viewMatrix, const SkRRect& outer,
255 const SkRRect& inner, const SkPaint& paint);
256
254 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent er, 257 void drawProducerNine(const SkDraw&, GrTextureProducer*, const SkIRect& cent er,
255 const SkRect& dst, const SkPaint&); 258 const SkRect& dst, const SkPaint&);
256 259
257 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 260 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
258 261
259 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 262 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
260 int sampleCount, GrTextureStorageA llocator); 263 int sampleCount, GrTextureStorageA llocator);
261 264
262 friend class GrAtlasTextContext; 265 friend class GrAtlasTextContext;
263 friend class SkSurface_Gpu; // for access to surfaceProps 266 friend class SkSurface_Gpu; // for access to surfaceProps
264 typedef SkBaseDevice INHERITED; 267 typedef SkBaseDevice INHERITED;
265 }; 268 };
266 269
267 #endif 270 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698