We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / android_webview / browser / child_frame.h
blobcb4f7d44058e01a083afb0a26192d51c1b0862f8
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.
5 #ifndef ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
6 #define ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_
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"
13 namespace cc {
14 class CompositorFrame;
17 namespace android_webview {
19 class ChildFrame {
20 public:
21 ChildFrame(scoped_ptr<cc::CompositorFrame> frame,
22 const gfx::Rect& viewport_rect_for_tile_priority,
23 const gfx::Transform& transform_for_tile_priority,
24 bool offscreen_pre_raster,
25 bool is_layer);
26 ~ChildFrame();
28 scoped_ptr<cc::CompositorFrame> frame;
29 const gfx::Rect viewport_rect_for_tile_priority;
30 const gfx::Transform transform_for_tile_priority;
31 const bool offscreen_pre_raster;
32 const bool is_layer;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ChildFrame);
38 } // namespace webview
40 #endif // ANDROID_WEBVIEW_BROWSER_CHILD_FRAME_H_