OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, 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 26 matching lines...) Expand all Loading... |
37 #include "platform/PlatformExport.h" | 37 #include "platform/PlatformExport.h" |
38 #include "platform/geometry/IntSize.h" | 38 #include "platform/geometry/IntSize.h" |
39 #include "platform/graphics/GraphicsTypes3D.h" | 39 #include "platform/graphics/GraphicsTypes3D.h" |
40 #include "platform/graphics/gpu/WebGLImageConversion.h" | 40 #include "platform/graphics/gpu/WebGLImageConversion.h" |
41 #include "third_party/khronos/GLES2/gl2.h" | 41 #include "third_party/khronos/GLES2/gl2.h" |
42 #include "third_party/skia/include/core/SkBitmap.h" | 42 #include "third_party/skia/include/core/SkBitmap.h" |
43 #include "wtf/Deque.h" | 43 #include "wtf/Deque.h" |
44 #include "wtf/Noncopyable.h" | 44 #include "wtf/Noncopyable.h" |
45 #include "wtf/RefCounted.h" | 45 #include "wtf/RefCounted.h" |
46 #include "wtf/Vector.h" | 46 #include "wtf/Vector.h" |
| 47 #include "wtf/WeakPtr.h" |
47 #include <memory> | 48 #include <memory> |
48 | 49 |
49 namespace cc { | 50 namespace cc { |
50 class SharedBitmap; | 51 class SharedBitmap; |
51 } | 52 } |
52 | 53 |
53 namespace gpu { | 54 namespace gpu { |
54 namespace gles2 { | 55 namespace gles2 { |
55 class GLES2Interface; | 56 class GLES2Interface; |
56 } | 57 } |
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 // used to resize the Canvas. | 509 // used to resize the Canvas. |
509 SkBitmap m_resizingBitmap; | 510 SkBitmap m_resizingBitmap; |
510 | 511 |
511 // In the case of OffscreenCanvas, we do not want to enable the | 512 // In the case of OffscreenCanvas, we do not want to enable the |
512 // WebGLImageChromium flag, so we replace all the | 513 // WebGLImageChromium flag, so we replace all the |
513 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with | 514 // RuntimeEnabledFeatures::webGLImageChromiumEnabled() call with |
514 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to | 515 // shouldUseChromiumImage() calls, and set m_chromiumImageUsage to |
515 // DisallowChromiumImage in the case of OffscreenCanvas. | 516 // DisallowChromiumImage in the case of OffscreenCanvas. |
516 ChromiumImageUsage m_chromiumImageUsage; | 517 ChromiumImageUsage m_chromiumImageUsage; |
517 bool shouldUseChromiumImage(); | 518 bool shouldUseChromiumImage(); |
| 519 |
| 520 WeakPtrFactory<DrawingBuffer> m_weakPtrFactory; |
518 }; | 521 }; |
519 | 522 |
520 } // namespace blink | 523 } // namespace blink |
521 | 524 |
522 #endif // DrawingBuffer_h | 525 #endif // DrawingBuffer_h |
OLD | NEW |