Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: blimp/client/compositor/blimp_compositor_android.h

Issue 1570943002: [Blimp client] Move client code into blimp::client namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « blimp/client/compositor/blimp_compositor.cc ('k') | blimp/client/compositor/blimp_compositor_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698