OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 bool PrepareTextureMailbox( | 376 bool PrepareTextureMailbox( |
377 cc::TextureMailbox* mailbox, | 377 cc::TextureMailbox* mailbox, |
378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; | 378 std::unique_ptr<cc::SingleReleaseCallback>* release_callback) override; |
379 | 379 |
380 float device_scale_factor() const { return device_scale_factor_; } | 380 float device_scale_factor() const { return device_scale_factor_; } |
381 | 381 |
382 // LayerClient | 382 // LayerClient |
383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( | 383 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo( |
384 cc::Layer* layer) override; | 384 cc::Layer* layer) override; |
385 void didUpdateMainThreadScrollingReasons() override; | 385 void didUpdateMainThreadScrollingReasons() override; |
| 386 void didChangeScrollbarsHidden(bool) override; |
386 | 387 |
387 // Triggers a call to SwitchToLayer. | 388 // Triggers a call to SwitchToLayer. |
388 void SwitchCCLayerForTest(); | 389 void SwitchCCLayerForTest(); |
389 | 390 |
390 const cc::Region& damaged_region_for_testing() const { | 391 const cc::Region& damaged_region_for_testing() const { |
391 return damaged_region_; | 392 return damaged_region_; |
392 } | 393 } |
393 | 394 |
394 private: | 395 private: |
395 friend class LayerOwner; | 396 friend class LayerOwner; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 541 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
541 // or SetTextureMailbox was called. | 542 // or SetTextureMailbox was called. |
542 gfx::Size frame_size_in_dip_; | 543 gfx::Size frame_size_in_dip_; |
543 | 544 |
544 DISALLOW_COPY_AND_ASSIGN(Layer); | 545 DISALLOW_COPY_AND_ASSIGN(Layer); |
545 }; | 546 }; |
546 | 547 |
547 } // namespace ui | 548 } // namespace ui |
548 | 549 |
549 #endif // UI_COMPOSITOR_LAYER_H_ | 550 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |