diff options
author | enne <enne@chromium.org> | 2014-12-10 13:32:09 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-10 21:32:45 +0000 |
commit | 7f8fdded6b22322a245bf643454291a0c12079c8 (patch) | |
tree | 0f6e7c68d2f84a53fdcff1e93f4029a80c79d7ed /cc/test/failure_output_surface.h | |
parent | ea4b5a8eb8f66713482ef7f4a8aca83886965440 (diff) | |
download | chromium_src-7f8fdded6b22322a245bf643454291a0c12079c8.zip chromium_src-7f8fdded6b22322a245bf643454291a0c12079c8.tar.gz chromium_src-7f8fdded6b22322a245bf643454291a0c12079c8.tar.bz2 |
Move output surface fallback from cc to embedders
Having this in cc means that all embedders get this logic and API, even
though only RenderWidgetCompositor and ui::Compositor use it.
This also means that cc no longer has to be robust to null
SetOutputSurface, which makes the API to embedders a bit more
clear.
Review URL: https://codereview.chromium.org/738983002
Cr-Commit-Position: refs/heads/master@{#307767}
Diffstat (limited to 'cc/test/failure_output_surface.h')
-rw-r--r-- | cc/test/failure_output_surface.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cc/test/failure_output_surface.h b/cc/test/failure_output_surface.h new file mode 100644 index 0000000..4878ea5 --- /dev/null +++ b/cc/test/failure_output_surface.h @@ -0,0 +1,24 @@ +// 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. + +#ifndef CC_TEST_FAILURE_OUTPUT_SURFACE_H_ +#define CC_TEST_FAILURE_OUTPUT_SURFACE_H_ + +#include "cc/test/fake_output_surface.h" + +namespace cc { + +class FailureOutputSurface : public FakeOutputSurface { + public: + explicit FailureOutputSurface(bool is_delegating); + + bool BindToClient(OutputSurfaceClient* client) override; + + private: + DISALLOW_COPY_AND_ASSIGN(FailureOutputSurface); +}; + +} // namespace cc + +#endif // CC_TEST_FAILURE_OUTPUT_SURFACE_H_ |