| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 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 ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/gfx/geometry/rect.h" |
| 10 #include "ui/gfx/geometry/size.h" |
| 11 #include "ui/gfx/transform.h" |
| 12 |
| 13 namespace cc { |
| 14 class CompositorFrame; |
| 15 } |
| 16 |
| 17 namespace android_webview { |
| 18 |
| 19 class ChildFrame { |
| 20 public: |
| 21 ChildFrame(scoped_ptr<cc::CompositorFrame> frame, |
| 22 const gfx::Rect& viewport_for_tile_priority, |
| 23 const gfx::Transform& transform_for_tile_priority, |
| 24 bool offscreen_pre_raster, |
| 25 bool is_layer); |
| 26 ~ChildFrame(); |
| 27 |
| 28 scoped_ptr<cc::CompositorFrame> frame; |
| 29 const gfx::Rect viewport_for_tile_priority; |
| 30 const gfx::Transform transform_for_tile_priority; |
| 31 const bool offscreen_pre_raster; |
| 32 const bool is_layer; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(ChildFrame); |
| 36 }; |
| 37 |
| 38 } // namespace webview |
| 39 |
| 40 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_ |
| OLD | NEW |