OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ | 5 #ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ |
6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ | 6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "blimp/client/compositor/blimp_compositor.h" | 10 #include "blimp/client/compositor/blimp_compositor.h" |
11 #include "ui/gfx/geometry/size.h" | 11 #include "ui/gfx/geometry/size.h" |
12 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class SingleThreadTaskRunner; | 15 class SingleThreadTaskRunner; |
16 class Thread; | 16 class Thread; |
17 } | 17 } |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 class LayerTreeHost; | 20 class LayerTreeHost; |
21 } | 21 } |
22 | 22 |
23 namespace blimp { | 23 namespace blimp { |
| 24 namespace client { |
24 | 25 |
25 class RenderWidgetFeature; | 26 class RenderWidgetFeature; |
26 | 27 |
27 // An Android specific version of the BlimpCompositor. This class builds a | 28 // An Android specific version of the BlimpCompositor. This class builds a |
28 // gfx::AcceleratedWidget out of an Android SurfaceView's surface. | 29 // gfx::AcceleratedWidget out of an Android SurfaceView's surface. |
29 class BlimpCompositorAndroid : public BlimpCompositor { | 30 class BlimpCompositorAndroid : public BlimpCompositor { |
30 public: | 31 public: |
31 // |real_size| is the total display area including system decorations (see | 32 // |real_size| is the total display area including system decorations (see |
32 // android.view.Display.getRealSize()). |size| is the total display | 33 // android.view.Display.getRealSize()). |size| is the total display |
33 // area not including system decorations (see android.view.Display.getSize()). | 34 // area not including system decorations (see android.view.Display.getSize()). |
(...skipping 27 matching lines...) Expand all Loading... |
61 int portrait_width_; | 62 int portrait_width_; |
62 int landscape_width_; | 63 int landscape_width_; |
63 | 64 |
64 // True if the |portrait_width_| and |landscape_width_| represent the device's | 65 // True if the |portrait_width_| and |landscape_width_| represent the device's |
65 // physical dimensions, including any area occupied by system decorations. | 66 // physical dimensions, including any area occupied by system decorations. |
66 bool real_size_supported_; | 67 bool real_size_supported_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(BlimpCompositorAndroid); | 69 DISALLOW_COPY_AND_ASSIGN(BlimpCompositorAndroid); |
69 }; | 70 }; |
70 | 71 |
| 72 } // namespace client |
71 } // namespace blimp | 73 } // namespace blimp |
72 | 74 |
73 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ | 75 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_COMPOSITOR_ANDROID_H_ |
OLD | NEW |