| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef Canvas2DLayerBridge_h | 26 #ifndef Canvas2DLayerBridge_h |
| 27 #define Canvas2DLayerBridge_h | 27 #define Canvas2DLayerBridge_h |
| 28 | 28 |
| 29 #include "cc/layers/texture_layer_client.h" | 29 #include "cc/layers/texture_layer_client.h" |
| 30 #include "cc/resources/texture_mailbox.h" | 30 #include "cc/resources/texture_mailbox.h" |
| 31 #include "platform/PlatformExport.h" | 31 #include "platform/PlatformExport.h" |
| 32 #include "platform/geometry/IntSize.h" | 32 #include "platform/geometry/IntSize.h" |
| 33 #include "platform/graphics/ImageBufferSurface.h" | 33 #include "platform/graphics/ImageBufferSurface.h" |
| 34 #include "platform/graphics/paint/PaintRecorder.h" | 34 #include "platform/graphics/paint/PaintRecorder.h" |
| 35 #include "platform/graphics/paint/PaintSurface.h" |
| 35 #include "public/platform/WebExternalTextureLayer.h" | 36 #include "public/platform/WebExternalTextureLayer.h" |
| 36 #include "third_party/khronos/GLES2/gl2.h" | 37 #include "third_party/khronos/GLES2/gl2.h" |
| 37 #include "third_party/skia/include/core/SkRefCnt.h" | 38 #include "third_party/skia/include/core/SkRefCnt.h" |
| 38 #include "ui/gfx/color_space.h" | 39 #include "ui/gfx/color_space.h" |
| 39 #include "wtf/Allocator.h" | 40 #include "wtf/Allocator.h" |
| 40 #include "wtf/Deque.h" | 41 #include "wtf/Deque.h" |
| 41 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
| 42 #include "wtf/RefPtr.h" | 43 #include "wtf/RefPtr.h" |
| 43 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
| 44 #include "wtf/WeakPtr.h" | 45 #include "wtf/WeakPtr.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // Each element in this vector represents an IOSurface backed texture that | 298 // Each element in this vector represents an IOSurface backed texture that |
| 298 // is ready to be reused. | 299 // is ready to be reused. |
| 299 // Elements in this vector can safely be purged in low memory conditions. | 300 // Elements in this vector can safely be purged in low memory conditions. |
| 300 Vector<RefPtr<ImageInfo>> m_imageInfoCache; | 301 Vector<RefPtr<ImageInfo>> m_imageInfoCache; |
| 301 #endif // USE_IOSURFACE_FOR_2D_CANVAS | 302 #endif // USE_IOSURFACE_FOR_2D_CANVAS |
| 302 }; | 303 }; |
| 303 | 304 |
| 304 } // namespace blink | 305 } // namespace blink |
| 305 | 306 |
| 306 #endif | 307 #endif |
| OLD | NEW |