| OLD | NEW |
| 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 21 matching lines...) Expand all Loading... |
| 32 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 32 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
| 33 AppendQuadsData* append_quads_data) OVERRIDE; | 33 AppendQuadsData* append_quads_data) OVERRIDE; |
| 34 | 34 |
| 35 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; | 35 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; |
| 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, | |
| 43 bool contents_swizzled); | 42 bool contents_swizzled); |
| 44 void PushInvalidTile(int i, int j); | 43 void PushInvalidTile(int i, int j); |
| 45 | 44 |
| 46 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE; | 45 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE; |
| 47 virtual void ReleaseResources() OVERRIDE; | 46 virtual void ReleaseResources() OVERRIDE; |
| 48 | 47 |
| 49 const LayerTilingData* TilingForTesting() const { return tiler_.get(); } | 48 const LayerTilingData* TilingForTesting() const { return tiler_.get(); } |
| 50 | 49 |
| 51 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; | 50 virtual size_t GPUMemoryUsageInBytes() const OVERRIDE; |
| 52 | 51 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 69 bool skips_draw_; | 68 bool skips_draw_; |
| 70 | 69 |
| 71 scoped_ptr<LayerTilingData> tiler_; | 70 scoped_ptr<LayerTilingData> tiler_; |
| 72 | 71 |
| 73 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); | 72 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 } // namespace cc | 75 } // namespace cc |
| 77 | 76 |
| 78 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ | 77 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ |
| OLD | NEW |