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

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

Issue 1229113003: Remove some unneeded DEPS from //sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_ 31 #ifndef SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_
32 #define SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_ 32 #define SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_
33 33
34 #include "sky/engine/platform/PlatformExport.h" 34 #include "sky/engine/platform/PlatformExport.h"
35 #include "sky/engine/platform/geometry/IntSize.h" 35 #include "sky/engine/platform/geometry/IntSize.h"
36 #include "sky/engine/platform/graphics/GraphicsTypes3D.h"
37 #include "sky/engine/wtf/FastAllocBase.h" 36 #include "sky/engine/wtf/FastAllocBase.h"
38 #include "sky/engine/wtf/Noncopyable.h" 37 #include "sky/engine/wtf/Noncopyable.h"
39 #include "sky/engine/wtf/PassRefPtr.h" 38 #include "sky/engine/wtf/PassRefPtr.h"
40 39
41 class SkBitmap; 40 class SkBitmap;
42 class SkCanvas; 41 class SkCanvas;
43 class SkPicture; 42 class SkPicture;
44 43
45 namespace blink { 44 namespace blink {
46 45
(...skipping 11 matching lines...) Expand all
58 public: 57 public:
59 virtual ~ImageBufferSurface() { } 58 virtual ~ImageBufferSurface() { }
60 59
61 virtual SkCanvas* canvas() const = 0; 60 virtual SkCanvas* canvas() const = 0;
62 virtual const SkBitmap& bitmap(); 61 virtual const SkBitmap& bitmap();
63 virtual void willAccessPixels() { } 62 virtual void willAccessPixels() { }
64 virtual bool isValid() const = 0; 63 virtual bool isValid() const = 0;
65 virtual bool restore() { return false; }; 64 virtual bool restore() { return false; };
66 virtual WebLayer* layer() const { return 0; }; 65 virtual WebLayer* layer() const { return 0; };
67 virtual bool isAccelerated() const { return false; } 66 virtual bool isAccelerated() const { return false; }
68 virtual Platform3DObject getBackingTexture() const { return 0; }
69 virtual bool cachedBitmapEnabled() const { return false; } 67 virtual bool cachedBitmapEnabled() const { return false; }
70 virtual const SkBitmap& cachedBitmap() const; 68 virtual const SkBitmap& cachedBitmap() const;
71 virtual void invalidateCachedBitmap() { } 69 virtual void invalidateCachedBitmap() { }
72 virtual void updateCachedBitmapIfNeeded() { } 70 virtual void updateCachedBitmapIfNeeded() { }
73 virtual void setIsHidden(bool) { } 71 virtual void setIsHidden(bool) { }
74 virtual void setImageBuffer(ImageBuffer*) { } 72 virtual void setImageBuffer(ImageBuffer*) { }
75 virtual PassRefPtr<SkPicture> getPicture(); 73 virtual PassRefPtr<SkPicture> getPicture();
76 virtual void didClearCanvas() { } 74 virtual void didClearCanvas() { }
77 virtual void finalizeFrame() { } 75 virtual void finalizeFrame() { }
78 76
79 OpacityMode opacityMode() const { return m_opacityMode; } 77 OpacityMode opacityMode() const { return m_opacityMode; }
80 const IntSize& size() const { return m_size; } 78 const IntSize& size() const { return m_size; }
81 void notifyIsValidChanged(bool isValid) const; 79 void notifyIsValidChanged(bool isValid) const;
82 80
83 protected: 81 protected:
84 ImageBufferSurface(const IntSize&, OpacityMode); 82 ImageBufferSurface(const IntSize&, OpacityMode);
85 void clear(); 83 void clear();
86 84
87 private: 85 private:
88 OpacityMode m_opacityMode; 86 OpacityMode m_opacityMode;
89 IntSize m_size; 87 IntSize m_size;
90 }; 88 };
91 89
92 } // namespace blink 90 } // namespace blink
93 91
94 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_ 92 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_IMAGEBUFFERSURFACE_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/ImageBuffer.cpp ('k') | sky/engine/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698