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

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

Issue 327263002: remove SK_SUPPORT_LEGACY_DEVICE_CONFIG code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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 | « include/core/SkDevice.h ('k') | src/gpu/GrPictureUtils.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 9
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual int width() const SK_OVERRIDE { 75 virtual int width() const SK_OVERRIDE {
76 return NULL == fRenderTarget ? 0 : fRenderTarget->width(); 76 return NULL == fRenderTarget ? 0 : fRenderTarget->width();
77 } 77 }
78 virtual int height() const SK_OVERRIDE { 78 virtual int height() const SK_OVERRIDE {
79 return NULL == fRenderTarget ? 0 : fRenderTarget->height(); 79 return NULL == fRenderTarget ? 0 : fRenderTarget->height();
80 } 80 }
81 virtual bool isOpaque() const SK_OVERRIDE { 81 virtual bool isOpaque() const SK_OVERRIDE {
82 return NULL == fRenderTarget ? false 82 return NULL == fRenderTarget ? false
83 : kRGB_565_GrPixelConfig == fRenderTarget-> config(); 83 : kRGB_565_GrPixelConfig == fRenderTarget-> config();
84 } 84 }
85 #ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
86 virtual SkBitmap::Config config() const SK_OVERRIDE;
87 #endif
88 85
89 virtual void clear(SkColor color) SK_OVERRIDE; 86 virtual void clear(SkColor color) SK_OVERRIDE;
90 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; 87 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
91 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 88 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
92 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; 89 const SkPoint[], const SkPaint& paint) SK_OVERRIDE;
93 virtual void drawRect(const SkDraw&, const SkRect& r, 90 virtual void drawRect(const SkDraw&, const SkRect& r,
94 const SkPaint& paint) SK_OVERRIDE; 91 const SkPaint& paint) SK_OVERRIDE;
95 virtual void drawRRect(const SkDraw&, const SkRRect& r, 92 virtual void drawRRect(const SkDraw&, const SkRRect& r,
96 const SkPaint& paint) SK_OVERRIDE; 93 const SkPaint& paint) SK_OVERRIDE;
97 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, 94 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool bicubic); 219 bool bicubic);
223 220
224 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 221 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
225 222
226 static SkPicture::AccelData::Key ComputeAccelDataKey(); 223 static SkPicture::AccelData::Key ComputeAccelDataKey();
227 224
228 typedef SkBitmapDevice INHERITED; 225 typedef SkBitmapDevice INHERITED;
229 }; 226 };
230 227
231 #endif 228 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | src/gpu/GrPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698