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

Side by Side Diff: src/utils/SkGatherPixelRefsAndRects.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 | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkPictureUtils.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkGatherPixelRefsAndRects_DEFINED 8 #ifndef SkGatherPixelRefsAndRects_DEFINED
9 #define SkGatherPixelRefsAndRects_DEFINED 9 #define SkGatherPixelRefsAndRects_DEFINED
10 10
(...skipping 20 matching lines...) Expand all
31 fEmptyBitmap.setInfo(SkImageInfo::MakeUnknown(width, height)); 31 fEmptyBitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
32 } 32 }
33 33
34 virtual ~SkGatherPixelRefsAndRectsDevice() { 34 virtual ~SkGatherPixelRefsAndRectsDevice() {
35 SkSafeUnref(fPRCont); 35 SkSafeUnref(fPRCont);
36 } 36 }
37 37
38 virtual int width() const SK_OVERRIDE { return fSize.width(); } 38 virtual int width() const SK_OVERRIDE { return fSize.width(); }
39 virtual int height() const SK_OVERRIDE { return fSize.height(); } 39 virtual int height() const SK_OVERRIDE { return fSize.height(); }
40 virtual bool isOpaque() const SK_OVERRIDE { return false; } 40 virtual bool isOpaque() const SK_OVERRIDE { return false; }
41 #ifdef SK_SUPPORT_LEGACY_DEVICE_CONFIG
42 virtual SkBitmap::Config config() const SK_OVERRIDE {
43 return SkBitmap::kNo_Config;
44 }
45 #endif
46 virtual SkImageInfo imageInfo() const SK_OVERRIDE { 41 virtual SkImageInfo imageInfo() const SK_OVERRIDE {
47 return fEmptyBitmap.info(); 42 return fEmptyBitmap.info();
48 } 43 }
49 44
50 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE { return NULL; } 45 virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE { return NULL; }
51 46
52 protected: 47 protected:
53 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE { 48 virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE {
54 return false; 49 return false;
55 } 50 }
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 static void NotSupported() { 327 static void NotSupported() {
333 SkDEBUGFAIL("this method should never be called"); 328 SkDEBUGFAIL("this method should never be called");
334 } 329 }
335 330
336 static void NothingToDo() {} 331 static void NothingToDo() {}
337 332
338 typedef SkBaseDevice INHERITED; 333 typedef SkBaseDevice INHERITED;
339 }; 334 };
340 335
341 #endif // SkGatherPixelRefsAndRects_DEFINED 336 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW
« no previous file with comments | « src/utils/SkDeferredCanvas.cpp ('k') | src/utils/SkPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698