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

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

Issue 202523002: cc: Replace Region with SimpleEnclosedRegion for occlusion tracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpleregion: . Created 6 years, 4 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 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 36
37 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } 37 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; }
38 void SetTilingData(const LayerTilingData& tiler); 38 void SetTilingData(const LayerTilingData& tiler);
39 void PushTileProperties(int i, 39 void PushTileProperties(int i,
40 int j, 40 int j,
41 ResourceProvider::ResourceId resource, 41 ResourceProvider::ResourceId resource,
42 const gfx::Rect& opaque_rect, 42 const gfx::Rect& opaque_rect,
43 bool contents_swizzled); 43 bool contents_swizzled);
44 void PushInvalidTile(int i, int j); 44 void PushInvalidTile(int i, int j);
45 45
46 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; 46 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE;
47 virtual void ReleaseResources() OVERRIDE; 47 virtual void ReleaseResources() OVERRIDE;
48 48
49 const LayerTilingData* TilingForTesting() const { return tiler_.get(); } 49 const LayerTilingData* TilingForTesting() const { return tiler_.get(); }
50 50
51 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; 51 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE;
52 52
53 protected: 53 protected:
54 TiledLayerImpl(LayerTreeImpl* tree_impl, int id); 54 TiledLayerImpl(LayerTreeImpl* tree_impl, int id);
55 // Exposed for testing. 55 // Exposed for testing.
56 bool HasTileAt(int i, int j) const; 56 bool HasTileAt(int i, int j) const;
(...skipping 12 matching lines...) Expand all
69 bool skips_draw_; 69 bool skips_draw_;
70 70
71 scoped_ptr<LayerTilingData> tiler_; 71 scoped_ptr<LayerTilingData> tiler_;
72 72
73 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); 73 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl);
74 }; 74 };
75 75
76 } // namespace cc 76 } // namespace cc
77 77
78 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ 78 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698