| 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/wtf/Allocator.h" |
| 36 #include "platform/wtf/Deque.h" |
| 37 #include "platform/wtf/RefCounted.h" |
| 38 #include "platform/wtf/RefPtr.h" |
| 39 #include "platform/wtf/Vector.h" |
| 40 #include "platform/wtf/WeakPtr.h" |
| 35 #include "public/platform/WebExternalTextureLayer.h" | 41 #include "public/platform/WebExternalTextureLayer.h" |
| 36 #include "third_party/khronos/GLES2/gl2.h" | 42 #include "third_party/khronos/GLES2/gl2.h" |
| 37 #include "third_party/skia/include/core/SkRefCnt.h" | 43 #include "third_party/skia/include/core/SkRefCnt.h" |
| 38 #include "ui/gfx/color_space.h" | 44 #include "ui/gfx/color_space.h" |
| 39 #include "wtf/Allocator.h" | |
| 40 #include "wtf/Deque.h" | |
| 41 #include "wtf/RefCounted.h" | |
| 42 #include "wtf/RefPtr.h" | |
| 43 #include "wtf/Vector.h" | |
| 44 #include "wtf/WeakPtr.h" | |
| 45 | 45 |
| 46 #include <memory> | 46 #include <memory> |
| 47 | 47 |
| 48 class SkImage; | 48 class SkImage; |
| 49 struct SkImageInfo; | 49 struct SkImageInfo; |
| 50 | 50 |
| 51 namespace gpu { | 51 namespace gpu { |
| 52 namespace gles2 { | 52 namespace gles2 { |
| 53 class GLES2Interface; | 53 class GLES2Interface; |
| 54 } | 54 } |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // Each element in this vector represents an IOSurface backed texture that | 297 // Each element in this vector represents an IOSurface backed texture that |
| 298 // is ready to be reused. | 298 // is ready to be reused. |
| 299 // Elements in this vector can safely be purged in low memory conditions. | 299 // Elements in this vector can safely be purged in low memory conditions. |
| 300 Vector<RefPtr<ImageInfo>> m_imageInfoCache; | 300 Vector<RefPtr<ImageInfo>> m_imageInfoCache; |
| 301 #endif // USE_IOSURFACE_FOR_2D_CANVAS | 301 #endif // USE_IOSURFACE_FOR_2D_CANVAS |
| 302 }; | 302 }; |
| 303 | 303 |
| 304 } // namespace blink | 304 } // namespace blink |
| 305 | 305 |
| 306 #endif | 306 #endif |
| OLD | NEW |