Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 116 | 116 |
| 117 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; | 117 bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; |
| 118 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, | 118 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, |
| 119 const SkImageFilter::Context&, | 119 const SkImageFilter::Context&, |
| 120 SkBitmap*, SkIPoint*) SK_OVERRIDE; | 120 SkBitmap*, SkIPoint*) SK_OVERRIDE; |
| 121 | 121 |
| 122 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, | 122 bool filterTexture(GrContext*, GrTexture*, const SkImageFilter*, |
| 123 const SkImageFilter::Context&, | 123 const SkImageFilter::Context&, |
| 124 SkBitmap* result, SkIPoint* offset); | 124 SkBitmap* result, SkIPoint* offset); |
| 125 | 125 |
| 126 // This call is *ONLY* for SkGpuDevice itself, and the TextContexts. | |
|
jvanverth1
2015/03/18 17:44:17
Make this private and make the TextContexts that n
| |
| 127 // TODO refactor this logic to the context level | |
| 128 void internalDrawPath(const SkPath& origSrcPath, const SkPaint& paint, | |
| 129 const SkMatrix& origViewMatrix, const SkMatrix* prePat hMatrix, | |
| 130 const SkIRect& clipBounds, bool pathIsMutable); | |
| 131 | |
| 126 protected: | 132 protected: |
| 127 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; | 133 bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; |
| 128 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE RRIDE; | 134 bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVE RRIDE; |
| 129 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; | 135 bool onShouldDisableLCD(const SkPaint&) const SK_OVERRIDE; |
| 130 | 136 |
| 131 /** PRIVATE / EXPERIMENTAL -- do not call */ | 137 /** PRIVATE / EXPERIMENTAL -- do not call */ |
| 132 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, | 138 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture, |
| 133 const SkMatrix*, const SkPaint*) SK_OV ERRIDE; | 139 const SkMatrix*, const SkPaint*) SK_OV ERRIDE; |
| 134 | 140 |
| 135 private: | 141 private: |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 | 209 |
| 204 static SkPicture::AccelData::Key ComputeAccelDataKey(); | 210 static SkPicture::AccelData::Key ComputeAccelDataKey(); |
| 205 | 211 |
| 206 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, | 212 static GrRenderTarget* CreateRenderTarget(GrContext*, SkSurface::Budgeted, c onst SkImageInfo&, |
| 207 int sampleCount); | 213 int sampleCount); |
| 208 | 214 |
| 209 typedef SkBaseDevice INHERITED; | 215 typedef SkBaseDevice INHERITED; |
| 210 }; | 216 }; |
| 211 | 217 |
| 212 #endif | 218 #endif |
| OLD | NEW |