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

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

Issue 1454933002: Initial implementation of GPU no filter NinePatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks 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
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const uint16_t indices[], int indexCount, 112 const uint16_t indices[], int indexCount,
113 const SkPaint&) override; 113 const SkPaint&) override;
114 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const SkRect[], 114 void drawAtlas(const SkDraw&, const SkImage* atlas, const SkRSXform[], const SkRect[],
115 const SkColor[], int count, SkXfermode::Mode, const SkPai nt&) override; 115 const SkColor[], int count, SkXfermode::Mode, const SkPai nt&) override;
116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 116 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
117 const SkPaint&) override; 117 const SkPaint&) override;
118 void drawImage(const SkDraw&, const SkImage*, SkScalar x, SkScalar y, 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 S kRect& dst, 119 void drawImageRect(const SkDraw&, const SkImage*, const SkRect* src, const S kRect& dst,
120 const SkPaint&, SkCanvas::SrcRectConstraint) override; 120 const SkPaint&, SkCanvas::SrcRectConstraint) override;
121 121
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 SkIRec t& center,
125 const SkRect& dst, const SkPaint& paint) override;
126
122 void flush() override; 127 void flush() override;
123 128
124 void onAttachToCanvas(SkCanvas* canvas) override; 129 void onAttachToCanvas(SkCanvas* canvas) override;
125 void onDetachFromCanvas() override; 130 void onDetachFromCanvas() override;
126 131
127 const SkBitmap& onAccessBitmap() override; 132 const SkBitmap& onAccessBitmap() override;
128 bool onAccessPixels(SkPixmap*) override; 133 bool onAccessPixels(SkPixmap*) override;
129 134
130 bool canHandleImageFilter(const SkImageFilter*) override; 135 bool canHandleImageFilter(const SkImageFilter*) override;
131 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 136 virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 264
260 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 265 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
261 int sampleCount); 266 int sampleCount);
262 267
263 friend class GrAtlasTextContext; 268 friend class GrAtlasTextContext;
264 friend class SkSurface_Gpu; // for access to surfaceProps 269 friend class SkSurface_Gpu; // for access to surfaceProps
265 typedef SkBaseDevice INHERITED; 270 typedef SkBaseDevice INHERITED;
266 }; 271 };
267 272
268 #endif 273 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698