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

Unified Diff: blimp/client/test/compositor/test_blimp_embedder_compositor.cc

Issue 2320923002: Add a full Blimp integration test. (Closed)
Patch Set: Fix build break with chrome embedder Created 4 years, 3 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
« no previous file with comments | « blimp/client/test/compositor/test_blimp_embedder_compositor.h ('k') | blimp/engine/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/test/compositor/test_blimp_embedder_compositor.cc
diff --git a/blimp/client/test/compositor/test_blimp_embedder_compositor.cc b/blimp/client/test/compositor/test_blimp_embedder_compositor.cc
new file mode 100644
index 0000000000000000000000000000000000000000..94b216d2c35dcf3019c006e2f7e0c3b0f1d5fc0c
--- /dev/null
+++ b/blimp/client/test/compositor/test_blimp_embedder_compositor.cc
@@ -0,0 +1,32 @@
+// 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.
+
+#include "blimp/client/test/compositor/test_blimp_embedder_compositor.h"
+
+#include <memory>
+
+#include "base/synchronization/waitable_event.h"
+#include "blimp/client/public/compositor/compositor_dependencies.h"
+#include "blimp/client/support/compositor/blimp_context_provider.h"
+#include "cc/layers/layer.h"
+#include "cc/output/copy_output_request.h"
+#include "cc/output/copy_output_result.h"
+#include "third_party/skia/include/core/SkBitmap.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace blimp {
+namespace client {
+
+TestBlimpEmbedderCompositor::TestBlimpEmbedderCompositor(
+ CompositorDependencies* compositor_dependencies)
+ : BlimpEmbedderCompositor(compositor_dependencies) {
+ SetContextProvider(BlimpContextProvider::Create(
+ gfx::kNullAcceleratedWidget,
+ compositor_dependencies->GetGpuMemoryBufferManager()));
+}
+
+TestBlimpEmbedderCompositor::~TestBlimpEmbedderCompositor() = default;
+
+} // namespace client
+} // namespace blimp
« no previous file with comments | « blimp/client/test/compositor/test_blimp_embedder_compositor.h ('k') | blimp/engine/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698