| 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 19 matching lines...) Expand all Loading... |
| 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(QuadSink* quad_sink, |
| 37 AppendQuadsData* append_quads_data) OVERRIDE; | 37 AppendQuadsData* append_quads_data) OVERRIDE; |
| 38 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; | 38 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; |
| 39 virtual void DidBecomeActive() OVERRIDE; | 39 virtual void DidBecomeActive() OVERRIDE; |
| 40 virtual void DidLoseOutputSurface() OVERRIDE; | 40 virtual void ReleaseResources() OVERRIDE; |
| 41 | 41 |
| 42 void SetNeedsRedraw(); | 42 void SetNeedsRedraw(); |
| 43 | 43 |
| 44 void SetProviderClientImpl( | 44 void SetProviderClientImpl( |
| 45 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); | 45 scoped_refptr<VideoFrameProviderClientImpl> provider_client_impl); |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 VideoLayerImpl(LayerTreeImpl* tree_impl, int id); | 48 VideoLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 49 | 49 |
| 50 virtual const char* LayerTypeAsString() const OVERRIDE; | 50 virtual const char* LayerTypeAsString() const OVERRIDE; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 62 std::vector<unsigned> software_resources_; | 62 std::vector<unsigned> software_resources_; |
| 63 // Called once for each software resource. | 63 // Called once for each software resource. |
| 64 ReleaseCallback software_release_callback_; | 64 ReleaseCallback software_release_callback_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 66 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace cc | 69 } // namespace cc |
| 70 | 70 |
| 71 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 71 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
| OLD | NEW |