summaryrefslogtreecommitdiffstats
path: root/cc/test/failure_output_surface.cc
blob: c0d5fdb0ad805e42b6c612c176316d64b3aba2dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2014 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/failure_output_surface.h"

namespace cc {

FailureOutputSurface::FailureOutputSurface(bool is_delegating)
    : FakeOutputSurface(static_cast<ContextProvider*>(nullptr), is_delegating) {
}

bool FailureOutputSurface::BindToClient(OutputSurfaceClient* client) {
  // This will force this output surface to not initialize in LTHI
  // and eventually get back to LTH::DidFailToInitializeOutputSurface;
  return false;
}

}  // namespace cc