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

Unified Diff: cc/test/fake_layer_tree_host_client.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_layer_tree_host_client.cc
diff --git a/cc/test/fake_layer_tree_host_client.cc b/cc/test/fake_layer_tree_host_client.cc
deleted file mode 100644
index a4a5d7ea7086783cc6c84d4a06d62e8cebbea753..0000000000000000000000000000000000000000
--- a/cc/test/fake_layer_tree_host_client.cc
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2012 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 "cc/test/fake_layer_tree_host_client.h"
-
-#include "cc/output/context_provider.h"
-#include "cc/test/fake_output_surface.h"
-#include "cc/test/test_web_graphics_context_3d.h"
-#include "cc/trees/layer_tree_host.h"
-
-namespace cc {
-
-FakeLayerTreeHostClient::FakeLayerTreeHostClient(RendererOptions options)
- : use_software_rendering_(options == DIRECT_SOFTWARE ||
- options == DELEGATED_SOFTWARE),
- use_delegating_renderer_(options == DELEGATED_3D ||
- options == DELEGATED_SOFTWARE),
- host_(NULL) {
-}
-
-FakeLayerTreeHostClient::~FakeLayerTreeHostClient() {}
-
-void FakeLayerTreeHostClient::RequestNewOutputSurface() {
- DCHECK(host_);
- scoped_ptr<OutputSurface> surface;
- if (use_software_rendering_) {
- if (use_delegating_renderer_) {
- surface = FakeOutputSurface::CreateDelegatingSoftware(
- make_scoped_ptr(new SoftwareOutputDevice));
- } else {
- surface = FakeOutputSurface::CreateSoftware(
- make_scoped_ptr(new SoftwareOutputDevice));
- }
- } else if (use_delegating_renderer_) {
- surface = FakeOutputSurface::CreateDelegating3d();
- } else {
- surface = FakeOutputSurface::Create3d();
- }
- host_->SetOutputSurface(surface.Pass());
-}
-
-void FakeLayerTreeHostClient::DidFailToInitializeOutputSurface() {
- RequestNewOutputSurface();
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/test/fake_layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698