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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h

Issue 1407133017: Cleanup some dead code in blink::ImageBuffer and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class FloatRect; 53 class FloatRect;
54 class GraphicsContext; 54 class GraphicsContext;
55 55
56 class PLATFORM_EXPORT ImageBufferSurface { 56 class PLATFORM_EXPORT ImageBufferSurface {
57 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); USING_FAST_MALLOC(ImageBufferSurfa ce); 57 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); USING_FAST_MALLOC(ImageBufferSurfa ce);
58 public: 58 public:
59 virtual ~ImageBufferSurface(); 59 virtual ~ImageBufferSurface();
60 60
61 virtual SkCanvas* canvas() = 0; 61 virtual SkCanvas* canvas() = 0;
62 virtual void disableDeferral() { } 62 virtual void disableDeferral() { }
63 virtual const SkBitmap& deprecatedBitmapForOverwrite();
64 virtual void willOverwriteCanvas() { } 63 virtual void willOverwriteCanvas() { }
65 virtual void didDraw(const FloatRect& rect) { } 64 virtual void didDraw(const FloatRect& rect) { }
66 virtual bool isValid() const = 0; 65 virtual bool isValid() const = 0;
67 virtual bool restore() { return false; } 66 virtual bool restore() { return false; }
68 virtual WebLayer* layer() const { return 0; } 67 virtual WebLayer* layer() const { return 0; }
69 virtual bool isAccelerated() const { return false; } 68 virtual bool isAccelerated() const { return false; }
70 virtual bool isRecording() const { return false; } 69 virtual bool isRecording() const { return false; }
71 virtual bool isExpensiveToPaint() { return false; } 70 virtual bool isExpensiveToPaint() { return false; }
72 virtual void setFilterQuality(SkFilterQuality) { } 71 virtual void setFilterQuality(SkFilterQuality) { }
73 virtual void setIsHidden(bool) { } 72 virtual void setIsHidden(bool) { }
(...skipping 20 matching lines...) Expand all
94 void clear(); 93 void clear();
95 94
96 private: 95 private:
97 OpacityMode m_opacityMode; 96 OpacityMode m_opacityMode;
98 IntSize m_size; 97 IntSize m_size;
99 }; 98 };
100 99
101 } // namespace blink 100 } // namespace blink
102 101
103 #endif 102 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698