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_VIDEO_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 6 #define CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 int id, | 26 int id, |
27 VideoFrameProvider* provider); | 27 VideoFrameProvider* provider); |
28 virtual ~VideoLayerImpl(); | 28 virtual ~VideoLayerImpl(); |
29 | 29 |
30 // LayerImpl implementation. | 30 // LayerImpl implementation. |
31 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 31 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
32 OVERRIDE; | 32 OVERRIDE; |
33 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 33 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
34 virtual bool WillDraw(DrawMode draw_mode, | 34 virtual bool WillDraw(DrawMode draw_mode, |
35 ResourceProvider* resource_provider) OVERRIDE; | 35 ResourceProvider* resource_provider) OVERRIDE; |
36 virtual void AppendQuads(QuadSink* quad_sink, | 36 virtual void AppendQuads(RenderPass* render_pass, |
| 37 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
37 AppendQuadsData* append_quads_data) OVERRIDE; | 38 AppendQuadsData* append_quads_data) OVERRIDE; |
38 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; | 39 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; |
39 virtual void DidBecomeActive() OVERRIDE; | 40 virtual void DidBecomeActive() OVERRIDE; |
40 virtual void ReleaseResources() OVERRIDE; | 41 virtual void ReleaseResources() OVERRIDE; |
41 | 42 |
42 void SetNeedsRedraw(); | 43 void SetNeedsRedraw(); |
43 | 44 |
44 void SetProviderClientImpl( | 45 void SetProviderClientImpl( |
45 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); | 46 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); |
46 | 47 |
(...skipping 15 matching lines...) Expand all Loading... |
62 std::vector<unsigned> software_resources_; | 63 std::vector<unsigned> software_resources_; |
63 // Called once for each software resource. | 64 // Called once for each software resource. |
64 ReleaseCallback software_release_callback_; | 65 ReleaseCallback software_release_callback_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 67 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace cc | 70 } // namespace cc |
70 | 71 |
71 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 72 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |