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

Side by Side Diff: cc/layers/texture_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/picture_layer_impl_unittest.cc ('k') | cc/layers/texture_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_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_TEXTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 16 matching lines...) Expand all
27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl) 27 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl)
28 OVERRIDE; 28 OVERRIDE;
29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 29 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
30 30
31 virtual bool WillDraw(DrawMode draw_mode, 31 virtual bool WillDraw(DrawMode draw_mode,
32 ResourceProvider* resource_provider) OVERRIDE; 32 ResourceProvider* resource_provider) OVERRIDE;
33 virtual void AppendQuads(QuadSink* quad_sink, 33 virtual void AppendQuads(QuadSink* quad_sink,
34 AppendQuadsData* append_quads_data) OVERRIDE; 34 AppendQuadsData* append_quads_data) OVERRIDE;
35 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE; 35 virtual void DidDraw(ResourceProvider* resource_provider) OVERRIDE;
36 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; 36 virtual Region VisibleContentOpaqueRegion() const OVERRIDE;
37 virtual void DidLoseOutputSurface() OVERRIDE; 37 virtual void ReleaseResources() OVERRIDE;
38 38
39 unsigned texture_id() const { return texture_id_; } 39 unsigned texture_id() const { return texture_id_; }
40 void set_texture_id(unsigned id) { texture_id_ = id; } 40 void set_texture_id(unsigned id) { texture_id_ = id; }
41 void set_premultiplied_alpha(bool premultiplied_alpha) { 41 void set_premultiplied_alpha(bool premultiplied_alpha) {
42 premultiplied_alpha_ = premultiplied_alpha; 42 premultiplied_alpha_ = premultiplied_alpha;
43 } 43 }
44 void set_blend_background_color(bool blend) { 44 void set_blend_background_color(bool blend) {
45 blend_background_color_ = blend; 45 blend_background_color_ = blend;
46 } 46 }
47 void set_flipped(bool flipped) { flipped_ = flipped; } 47 void set_flipped(bool flipped) { flipped_ = flipped; }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 bool uses_mailbox_; 85 bool uses_mailbox_;
86 bool own_mailbox_; 86 bool own_mailbox_;
87 bool valid_texture_copy_; 87 bool valid_texture_copy_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); 89 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl);
90 }; 90 };
91 91
92 } // namespace cc 92 } // namespace cc
93 93
94 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 94 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698