refactor: inline simple getters (#41125)

This commit is contained in:
Charles Kerr 2024-01-29 20:43:28 -06:00 committed by GitHub
parent 4e19321ba8
commit ffec3127d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 93 additions and 192 deletions

View file

@ -31,10 +31,10 @@ class OffscreenViewProxy {
void SetObserver(OffscreenViewProxyObserver* observer);
void RemoveObserver();
const SkBitmap* GetBitmap() const;
const SkBitmap* bitmap() const { return view_bitmap_.get(); }
void SetBitmap(const SkBitmap& bitmap);
const gfx::Rect& GetBounds();
const gfx::Rect& bounds() { return view_bounds_; }
void SetBounds(const gfx::Rect& bounds);
void OnEvent(ui::Event* event);