| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 6 #define CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/layers/picture_layer_impl.h" | 9 #include "cc/layers/picture_layer_impl.h" |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 size_t release_resources_count() const { return release_resources_count_; } | 143 size_t release_resources_count() const { return release_resources_count_; } |
| 144 void reset_release_resources_count() { release_resources_count_ = 0; } | 144 void reset_release_resources_count() { release_resources_count_ = 0; } |
| 145 | 145 |
| 146 void ReleaseResources() override; | 146 void ReleaseResources() override; |
| 147 | 147 |
| 148 bool only_used_low_res_last_append_quads() const { | 148 bool only_used_low_res_last_append_quads() const { |
| 149 return only_used_low_res_last_append_quads_; | 149 return only_used_low_res_last_append_quads_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 void set_can_use_lcd_text(bool can_use_lcd_text) { |
| 153 draw_properties_.can_use_lcd_text = can_use_lcd_text; |
| 154 } |
| 155 |
| 152 protected: | 156 protected: |
| 153 FakePictureLayerImpl(LayerTreeImpl* tree_impl, | 157 FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
| 154 int id, | 158 int id, |
| 155 scoped_refptr<RasterSource> raster_source, | 159 scoped_refptr<RasterSource> raster_source, |
| 156 bool is_mask); | 160 bool is_mask); |
| 157 FakePictureLayerImpl(LayerTreeImpl* tree_impl, | 161 FakePictureLayerImpl(LayerTreeImpl* tree_impl, |
| 158 int id, | 162 int id, |
| 159 scoped_refptr<RasterSource> raster_source, | 163 scoped_refptr<RasterSource> raster_source, |
| 160 bool is_mask, | 164 bool is_mask, |
| 161 const gfx::Size& layer_bounds); | 165 const gfx::Size& layer_bounds); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 172 size_t append_quads_count_; | 176 size_t append_quads_count_; |
| 173 size_t did_become_active_call_count_; | 177 size_t did_become_active_call_count_; |
| 174 bool has_valid_tile_priorities_; | 178 bool has_valid_tile_priorities_; |
| 175 bool use_set_valid_tile_priorities_flag_; | 179 bool use_set_valid_tile_priorities_flag_; |
| 176 size_t release_resources_count_; | 180 size_t release_resources_count_; |
| 177 }; | 181 }; |
| 178 | 182 |
| 179 } // namespace cc | 183 } // namespace cc |
| 180 | 184 |
| 181 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ | 185 #endif // CC_TEST_FAKE_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |