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

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

Issue 302253002: hide SkDevice::config() (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
85 virtual SkBitmap::Config config() const SK_OVERRIDE; 86 virtual SkBitmap::Config config() const SK_OVERRIDE;
87 #endif
86 88
87 virtual void clear(SkColor color) SK_OVERRIDE; 89 virtual void clear(SkColor color) SK_OVERRIDE;
88 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE; 90 virtual void drawPaint(const SkDraw&, const SkPaint& paint) SK_OVERRIDE;
89 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t, 91 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, size_t coun t,
90 const SkPoint[], const SkPaint& paint) SK_OVERRIDE; 92 const SkPoint[], const SkPaint& paint) SK_OVERRIDE;
91 virtual void drawRect(const SkDraw&, const SkRect& r, 93 virtual void drawRect(const SkDraw&, const SkRect& r,
92 const SkPaint& paint) SK_OVERRIDE; 94 const SkPaint& paint) SK_OVERRIDE;
93 virtual void drawRRect(const SkDraw&, const SkRRect& r, 95 virtual void drawRRect(const SkDraw&, const SkRRect& r,
94 const SkPaint& paint) SK_OVERRIDE; 96 const SkPaint& paint) SK_OVERRIDE;
95 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer, 97 virtual void drawDRRect(const SkDraw& draw, const SkRRect& outer,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 bool bicubic); 222 bool bicubic);
221 223
222 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 224 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
223 225
224 static SkPicture::AccelData::Key ComputeAccelDataKey(); 226 static SkPicture::AccelData::Key ComputeAccelDataKey();
225 227
226 typedef SkBitmapDevice INHERITED; 228 typedef SkBitmapDevice INHERITED;
227 }; 229 };
228 230
229 #endif 231 #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