OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ | 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ |
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ | 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual ~DelegatedRendererLayer(); | 40 virtual ~DelegatedRendererLayer(); |
41 | 41 |
42 private: | 42 private: |
43 scoped_refptr<DelegatedFrameProvider> frame_provider_; | 43 scoped_refptr<DelegatedFrameProvider> frame_provider_; |
44 | 44 |
45 bool should_collect_new_frame_; | 45 bool should_collect_new_frame_; |
46 | 46 |
47 DelegatedFrameData* frame_data_; | 47 DelegatedFrameData* frame_data_; |
48 gfx::RectF frame_damage_; | 48 gfx::RectF frame_damage_; |
49 | 49 |
50 scoped_refptr<BlockingTaskRunner> main_thread_runner_; | |
51 base::WeakPtrFactory<DelegatedRendererLayer> weak_ptrs_; | 50 base::WeakPtrFactory<DelegatedRendererLayer> weak_ptrs_; |
52 | 51 |
53 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayer); | 52 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayer); |
54 }; | 53 }; |
55 | 54 |
56 } // namespace cc | 55 } // namespace cc |
57 | 56 |
58 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ | 57 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_H_ |
OLD | NEW |