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

Side by Side Diff: src/utils/SkGatherPixelRefsAndRects.h

Issue 198943003: getDeviceCapabilities is no longer need, so remove it (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 19 matching lines...) Expand all
30 SkSafeRef(fPRCont); 30 SkSafeRef(fPRCont);
31 fEmptyBitmap.setConfig(SkImageInfo::Make(width, height, 31 fEmptyBitmap.setConfig(SkImageInfo::Make(width, height,
32 kUnknown_SkColorType, 32 kUnknown_SkColorType,
33 kIgnore_SkAlphaType)); 33 kIgnore_SkAlphaType));
34 } 34 }
35 35
36 virtual ~SkGatherPixelRefsAndRectsDevice() { 36 virtual ~SkGatherPixelRefsAndRectsDevice() {
37 SkSafeUnref(fPRCont); 37 SkSafeUnref(fPRCont);
38 } 38 }
39 39
40 virtual uint32_t getDeviceCapabilities() SK_OVERRIDE { return 0; }
41
42 virtual int width() const SK_OVERRIDE { return fSize.width(); } 40 virtual int width() const SK_OVERRIDE { return fSize.width(); }
43 virtual int height() const SK_OVERRIDE { return fSize.height(); } 41 virtual int height() const SK_OVERRIDE { return fSize.height(); }
44 virtual bool isOpaque() const SK_OVERRIDE { return false; } 42 virtual bool isOpaque() const SK_OVERRIDE { return false; }
45 virtual SkBitmap::Config config() const SK_OVERRIDE { 43 virtual SkBitmap::Config config() const SK_OVERRIDE {
46 return SkBitmap::kNo_Config; 44 return SkBitmap::kNo_Config;
47 } 45 }
48 virtual SkImageInfo imageInfo() const SK_OVERRIDE { 46 virtual SkImageInfo imageInfo() const SK_OVERRIDE {
49 return fEmptyBitmap.info(); 47 return fEmptyBitmap.info();
50 } 48 }
51 49
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 static void NotSupported() { 344 static void NotSupported() {
347 SkDEBUGFAIL("this method should never be called"); 345 SkDEBUGFAIL("this method should never be called");
348 } 346 }
349 347
350 static void NothingToDo() {} 348 static void NothingToDo() {}
351 349
352 typedef SkBaseDevice INHERITED; 350 typedef SkBaseDevice INHERITED;
353 }; 351 };
354 352
355 #endif // SkGatherPixelRefsAndRects_DEFINED 353 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698