OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ |
6 #define CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 const blink::WebSize size_; | 86 const blink::WebSize size_; |
87 gfx::Size last_size; | 87 gfx::Size last_size; |
88 std::vector<uint8_t> temp_data_; | 88 std::vector<uint8_t> temp_data_; |
89 size_t row_bytes_; | 89 size_t row_bytes_; |
90 SkImageInfo image_info_; | 90 SkImageInfo image_info_; |
91 media::VideoFramePool frame_pool_; | 91 media::VideoFramePool frame_pool_; |
92 | 92 |
93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 93 const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
94 scoped_ptr<CanvasCaptureHandlerDelegate> delegate_; | 94 scoped_ptr<CanvasCaptureHandlerDelegate> delegate_; |
95 // Bound to the main render thread. | 95 |
96 base::ThreadChecker thread_checker_; | 96 // Bound to Main Render thread. |
| 97 base::ThreadChecker main_render_thread_checker_; |
97 base::WeakPtrFactory<CanvasCaptureHandler> weak_ptr_factory_; | 98 base::WeakPtrFactory<CanvasCaptureHandler> weak_ptr_factory_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(CanvasCaptureHandler); | 100 DISALLOW_COPY_AND_ASSIGN(CanvasCaptureHandler); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace content | 103 } // namespace content |
103 | 104 |
104 #endif // CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ | 105 #endif // CONTENT_RENDERER_MEDIA_CANVAS_CAPTURE_HANDLER_H_ |
OLD | NEW |