| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 | 311 |
| 312 void SetDrawCheckerboardForMissingTiles(bool checkerboard); | 312 void SetDrawCheckerboardForMissingTiles(bool checkerboard); |
| 313 bool draw_checkerboard_for_missing_tiles() const { | 313 bool draw_checkerboard_for_missing_tiles() const { |
| 314 return draw_checkerboard_for_missing_tiles_; | 314 return draw_checkerboard_for_missing_tiles_; |
| 315 } | 315 } |
| 316 | 316 |
| 317 void SetForceRenderSurface(bool force_render_surface); | 317 void SetForceRenderSurface(bool force_render_surface); |
| 318 bool force_render_surface() const { return force_render_surface_; } | 318 bool force_render_surface() const { return force_render_surface_; } |
| 319 | 319 |
| 320 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } | 320 gfx::Vector2dF ScrollDelta() const { return gfx::Vector2dF(); } |
| 321 gfx::ScrollOffset TotalScrollOffset() const { | 321 gfx::ScrollOffset CurrentScrollOffset() const { return scroll_offset_; } |
| 322 return ScrollOffsetWithDelta(scroll_offset(), ScrollDelta()); | |
| 323 } | |
| 324 | 322 |
| 325 void SetDoubleSided(bool double_sided); | 323 void SetDoubleSided(bool double_sided); |
| 326 bool double_sided() const { return double_sided_; } | 324 bool double_sided() const { return double_sided_; } |
| 327 | 325 |
| 328 void SetShouldFlattenTransform(bool flatten); | 326 void SetShouldFlattenTransform(bool flatten); |
| 329 bool should_flatten_transform() const { return should_flatten_transform_; } | 327 bool should_flatten_transform() const { return should_flatten_transform_; } |
| 330 | 328 |
| 331 bool Is3dSorted() const { return sorting_context_id_ != 0; } | 329 bool Is3dSorted() const { return sorting_context_id_ != 0; } |
| 332 | 330 |
| 333 void set_use_parent_backface_visibility(bool use) { | 331 void set_use_parent_backface_visibility(bool use) { |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 | 708 |
| 711 std::vector<FrameTimingRequest> frame_timing_requests_; | 709 std::vector<FrameTimingRequest> frame_timing_requests_; |
| 712 bool frame_timing_requests_dirty_; | 710 bool frame_timing_requests_dirty_; |
| 713 | 711 |
| 714 DISALLOW_COPY_AND_ASSIGN(Layer); | 712 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 715 }; | 713 }; |
| 716 | 714 |
| 717 } // namespace cc | 715 } // namespace cc |
| 718 | 716 |
| 719 #endif // CC_LAYERS_LAYER_H_ | 717 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |