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 20 matching lines...) Expand all Loading... |
31 media::VideoRotation video_rotation); | 31 media::VideoRotation video_rotation); |
32 ~VideoLayerImpl() override; | 32 ~VideoLayerImpl() override; |
33 | 33 |
34 // LayerImpl implementation. | 34 // LayerImpl implementation. |
35 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; | 35 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; |
36 bool WillDraw(DrawMode draw_mode, | 36 bool WillDraw(DrawMode draw_mode, |
37 ResourceProvider* resource_provider) override; | 37 ResourceProvider* resource_provider) override; |
38 void AppendQuads(RenderPass* render_pass, | 38 void AppendQuads(RenderPass* render_pass, |
39 AppendQuadsData* append_quads_data) override; | 39 AppendQuadsData* append_quads_data) override; |
40 void DidDraw(ResourceProvider* resource_provider) override; | 40 void DidDraw(ResourceProvider* resource_provider) override; |
41 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; | 41 SimpleEnclosedRegion VisibleOpaqueRegion() const override; |
42 void DidBecomeActive() override; | 42 void DidBecomeActive() override; |
43 void ReleaseResources() override; | 43 void ReleaseResources() override; |
44 | 44 |
45 void SetNeedsRedraw(); | 45 void SetNeedsRedraw(); |
46 media::VideoRotation video_rotation() const { return video_rotation_; } | 46 media::VideoRotation video_rotation() const { return video_rotation_; } |
47 | 47 |
48 private: | 48 private: |
49 VideoLayerImpl( | 49 VideoLayerImpl( |
50 LayerTreeImpl* tree_impl, | 50 LayerTreeImpl* tree_impl, |
51 int id, | 51 int id, |
(...skipping 26 matching lines...) Expand all Loading... |
78 std::vector<unsigned> software_resources_; | 78 std::vector<unsigned> software_resources_; |
79 // Called once for each software resource. | 79 // Called once for each software resource. |
80 ReleaseCallbackImpl software_release_callback_; | 80 ReleaseCallbackImpl software_release_callback_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); | 82 DISALLOW_COPY_AND_ASSIGN(VideoLayerImpl); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace cc | 85 } // namespace cc |
86 | 86 |
87 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ | 87 #endif // CC_LAYERS_VIDEO_LAYER_IMPL_H_ |
OLD | NEW |