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

Side by Side Diff: cc/layers/tiled_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/texture_layer_impl.cc ('k') | cc/layers/tiled_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TILED_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_TILED_LAYER_IMPL_H_
6 #define CC_LAYERS_TILED_LAYER_IMPL_H_ 6 #define CC_LAYERS_TILED_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 25 matching lines...) Expand all
36 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } 36 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; }
37 void SetTilingData(const LayerTilingData& tiler); 37 void SetTilingData(const LayerTilingData& tiler);
38 void PushTileProperties(int i, 38 void PushTileProperties(int i,
39 int j, 39 int j,
40 ResourceProvider::ResourceId resource, 40 ResourceProvider::ResourceId resource,
41 gfx::Rect opaque_rect, 41 gfx::Rect opaque_rect,
42 bool contents_swizzled); 42 bool contents_swizzled);
43 void PushInvalidTile(int i, int j); 43 void PushInvalidTile(int i, int j);
44 44
45 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; 45 virtual Region VisibleContentOpaqueRegion() const OVERRIDE;
46 virtual void DidLoseOutputSurface() OVERRIDE; 46 virtual void ReleaseResources() OVERRIDE;
47 47
48 const LayerTilingData* TilingForTesting() const { return tiler_.get(); } 48 const LayerTilingData* TilingForTesting() const { return tiler_.get(); }
49 49
50 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; 50 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE;
51 51
52 protected: 52 protected:
53 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); 53 TiledLayerImpl(LayerTreeImpl* tree_impl, int id);
54 // Exposed for testing. 54 // Exposed for testing.
55 bool HasTileAt(int i, int j) const; 55 bool HasTileAt(int i, int j) const;
56 bool HasResourceIdForTileAt(int i, int j) const; 56 bool HasResourceIdForTileAt(int i, int j) const;
(...skipping 11 matching lines...) Expand all
68 bool skips_draw_; 68 bool skips_draw_;
69 69
70 scoped_ptr<LayerTilingData> tiler_; 70 scoped_ptr<LayerTilingData> tiler_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); 72 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl);
73 }; 73 };
74 74
75 } // namespace cc 75 } // namespace cc
76 76
77 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ 77 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_impl.cc ('k') | cc/layers/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698