OLD | NEW |
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 24 matching lines...) Expand all Loading... |
35 #include "platform/geometry/IntSize.h" | 35 #include "platform/geometry/IntSize.h" |
36 #include "platform/graphics/GraphicsTypes3D.h" | 36 #include "platform/graphics/GraphicsTypes3D.h" |
37 #include "wtf/FastAllocBase.h" | 37 #include "wtf/FastAllocBase.h" |
38 #include "wtf/Noncopyable.h" | 38 #include "wtf/Noncopyable.h" |
39 | 39 |
40 class SkCanvas; | 40 class SkCanvas; |
41 class SkBitmap; | 41 class SkBitmap; |
42 | 42 |
43 namespace blink { class WebLayer; } | 43 namespace blink { class WebLayer; } |
44 | 44 |
45 namespace WebCore { | 45 namespace blink { |
46 | 46 |
47 class ImageBuffer; | 47 class ImageBuffer; |
48 | 48 |
49 enum OpacityMode { | 49 enum OpacityMode { |
50 NonOpaque, | 50 NonOpaque, |
51 Opaque, | 51 Opaque, |
52 }; | 52 }; |
53 | 53 |
54 class PLATFORM_EXPORT ImageBufferSurface { | 54 class PLATFORM_EXPORT ImageBufferSurface { |
55 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; | 55 WTF_MAKE_NONCOPYABLE(ImageBufferSurface); WTF_MAKE_FAST_ALLOCATED; |
(...skipping 22 matching lines...) Expand all Loading... |
78 | 78 |
79 protected: | 79 protected: |
80 ImageBufferSurface(const IntSize&, OpacityMode); | 80 ImageBufferSurface(const IntSize&, OpacityMode); |
81 void clear(); | 81 void clear(); |
82 | 82 |
83 private: | 83 private: |
84 OpacityMode m_opacityMode; | 84 OpacityMode m_opacityMode; |
85 IntSize m_size; | 85 IntSize m_size; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace WebCore | 88 } // namespace blink |
89 | 89 |
90 #endif | 90 #endif |
OLD | NEW |