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 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 static scoped_ptr<VideoLayerImpl> Create(LayerTreeImpl* tree_impl, | 24 static scoped_ptr<VideoLayerImpl> Create(LayerTreeImpl* tree_impl, |
25 int id, | 25 int id, |
26 VideoFrameProvider* provider); | 26 VideoFrameProvider* provider); |
27 virtual ~VideoLayerImpl(); | 27 virtual ~VideoLayerImpl(); |
28 | 28 |
29 // LayerImpl implementation. | 29 // LayerImpl implementation. |
30 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) | 30 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) |
31 OVERRIDE; | 31 OVERRIDE; |
32 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 32 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
33 virtual void WillDraw(ResourceProvider* resource_provider) OVERRIDE; | 33 virtual bool WillDraw(DrawMode draw_mode, |
| 34 ResourceProvider* resource_provider) OVERRIDE; |
34 virtual void AppendQuads(QuadSink* quad_sink, | 35 virtual void AppendQuads(QuadSink* quad_sink, |
35 AppendQuadsData* append_quads_data) OVERRIDE; | 36 AppendQuadsData* append_quads_data) OVERRIDE; |
36 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; | 37 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; |
37 virtual void DidBecomeActive() OVERRIDE; | 38 virtual void DidBecomeActive() OVERRIDE; |
38 virtual void DidLoseOutputSurface() OVERRIDE; | 39 virtual void DidLoseOutputSurface() OVERRIDE; |
39 | 40 |
40 void SetNeedsRedraw(); | 41 void SetNeedsRedraw(); |
41 | 42 |
42 void SetProviderClientImpl( | 43 void SetProviderClientImpl( |
43 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); | 44 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); |
(...skipping 19 matching lines...) Expand all Loading... |
63 // ExternalResource (aka TextureMailbox) classes. | 64 // ExternalResource (aka TextureMailbox) classes. |
64 std::vector<unsigned> software_resources_; | 65 std::vector<unsigned> software_resources_; |
65 TextureMailbox::ReleaseCallback software_release_callback_; | 66 TextureMailbox::ReleaseCallback software_release_callback_; |
66 | 67 |
67 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 68 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
68 }; | 69 }; |
69 | 70 |
70 } // namespace cc | 71 } // namespace cc |
71 | 72 |
72 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 73 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |