Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: cc/layers/video_layer_impl.h

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on r203584 Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698