| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef RemoteFramePainter_h |
| 6 #define RemoteFramePainter_h |
| 7 |
| 8 #include "skia/ext/SkFutureDrawable.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class CullRect; |
| 13 class GraphicsContext; |
| 14 class RemoteFrameView; |
| 15 |
| 16 class RemoteFramePainter { |
| 17 STACK_ALLOCATED(); |
| 18 |
| 19 public: |
| 20 RemoteFramePainter(const RemoteFrameView& view) : m_frameView(view) {} |
| 21 |
| 22 void paint(GraphicsContext&, const CullRect&) const; |
| 23 |
| 24 private: |
| 25 const RemoteFrameView& m_frameView; |
| 26 mutable sk_sp<SkFutureDrawable> drawable_; |
| 27 }; |
| 28 |
| 29 } // namespace blink |
| 30 |
| 31 #endif // RemoteFramePainter_h |
| OLD | NEW |