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

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
« 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 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 254
250 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, 255 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&,
251 int sampleCount); 256 int sampleCount);
252 257
253 friend class GrAtlasTextContext; 258 friend class GrAtlasTextContext;
254 friend class SkSurface_Gpu; // for access to surfaceProps 259 friend class SkSurface_Gpu; // for access to surfaceProps
255 typedef SkBaseDevice INHERITED; 260 typedef SkBaseDevice INHERITED;
256 }; 261 };
257 262
258 #endif 263 #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