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

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

Issue 132683003: cc: Rename LayerImpl::DidLoseOutputSurface to ReleaseResources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « cc/layers/tiled_layer_impl.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 19 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_impl.cc ('k') | cc/layers/video_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698