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

Unified Diff: blimp/client/support/compositor/android/compositor_dependencies_impl_android.h

Issue 2274323002: Expose Blimp dependencies to the embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@khushal_baseline_1
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/support/compositor/android/compositor_dependencies_impl_android.h
diff --git a/blimp/client/support/compositor/android/compositor_dependencies_impl_android.h b/blimp/client/support/compositor/android/compositor_dependencies_impl_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..ef13cec172d71efbf64a7a704d43cbd44447c26d
--- /dev/null
+++ b/blimp/client/support/compositor/android/compositor_dependencies_impl_android.h
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_CLIENT_SUPPORT_COMPOSITOR_ANDROID_COMPOSITOR_DEPENDENCIES_IMPL_ANDROID_H_
+#define BLIMP_CLIENT_SUPPORT_COMPOSITOR_ANDROID_COMPOSITOR_DEPENDENCIES_IMPL_ANDROID_H_
+
+#include "base/macros.h"
+#include "blimp/client/support/compositor/compositor_dependencies_impl.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace blimp {
+namespace client {
+
+class CompositorDependenciesImplAndroid : public CompositorDependenciesImpl {
+ public:
+ CompositorDependenciesImplAndroid(const gfx::Size& real_size,
Khushal 2016/08/24 23:22:46 I think we can get rid of the android subclass and
David Trainor- moved to gerrit 2016/08/26 17:15:54 Done.
+ const gfx::Size& size);
+ ~CompositorDependenciesImplAndroid() override;
+
+ std::unique_ptr<cc::LayerTreeSettings> GetLayerTreeSettings() override;
+
+ private:
+ // Used to determine tile size for the compositor's rastered tiles. For a
+ // device of width X height |portrait_width_| will be min(width, height) and
+ // |landscape_width_| will be max(width, height).
+ int portrait_width_;
+ int landscape_width_;
+
+ // True if the |portrait_width_| and |landscape_width_| represent the device's
+ // physical dimensions, including any area occupied by system decorations.
+ bool real_size_supported_;
+
+ DISALLOW_COPY_AND_ASSIGN(CompositorDependenciesImplAndroid);
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_SUPPORT_COMPOSITOR_ANDROID_COMPOSITOR_DEPENDENCIES_IMPL_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698