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

Side by Side Diff: sky/engine/platform/graphics/ImageBufferSurface.h

Issue 842113005: Delete a bunch of noop paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix comment Created 5 years, 11 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual bool isAccelerated() const { return false; } 67 virtual bool isAccelerated() const { return false; }
68 virtual Platform3DObject getBackingTexture() const { return 0; } 68 virtual Platform3DObject getBackingTexture() const { return 0; }
69 virtual bool cachedBitmapEnabled() const { return false; } 69 virtual bool cachedBitmapEnabled() const { return false; }
70 virtual const SkBitmap& cachedBitmap() const; 70 virtual const SkBitmap& cachedBitmap() const;
71 virtual void invalidateCachedBitmap() { } 71 virtual void invalidateCachedBitmap() { }
72 virtual void updateCachedBitmapIfNeeded() { } 72 virtual void updateCachedBitmapIfNeeded() { }
73 virtual void setIsHidden(bool) { } 73 virtual void setIsHidden(bool) { }
74 virtual void setImageBuffer(ImageBuffer*) { } 74 virtual void setImageBuffer(ImageBuffer*) { }
75 virtual PassRefPtr<SkPicture> getPicture(); 75 virtual PassRefPtr<SkPicture> getPicture();
76 virtual void didClearCanvas() { } 76 virtual void didClearCanvas() { }
77 virtual void finalizeFrame(const FloatRect &dirtyRect) { } 77 virtual void finalizeFrame() { }
78 78
79 OpacityMode opacityMode() const { return m_opacityMode; } 79 OpacityMode opacityMode() const { return m_opacityMode; }
80 const IntSize& size() const { return m_size; } 80 const IntSize& size() const { return m_size; }
81 void notifyIsValidChanged(bool isValid) const; 81 void notifyIsValidChanged(bool isValid) const;
82 82
83 protected: 83 protected:
84 ImageBufferSurface(const IntSize&, OpacityMode); 84 ImageBufferSurface(const IntSize&, OpacityMode);
85 void clear(); 85 void clear();
86 86
87 private: 87 private:
88 OpacityMode m_opacityMode; 88 OpacityMode m_opacityMode;
89 IntSize m_size; 89 IntSize m_size;
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_ 94 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/ImageBuffer.cpp ('k') | sky/engine/platform/scroll/ScrollableArea.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698