| Index: sky/compositor/display_delegate_bitmap.h
|
| diff --git a/sky/compositor/display_delegate_bitmap.h b/sky/compositor/display_delegate_bitmap.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4df1cf90a5ae89d78b5698034ceccfcb1a675e35
|
| --- /dev/null
|
| +++ b/sky/compositor/display_delegate_bitmap.h
|
| @@ -0,0 +1,33 @@
|
| +// 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 SKY_COMPOSITOR_DISPLAY_DELEGATE_BITMAP_H_
|
| +#define SKY_COMPOSITOR_DISPLAY_DELEGATE_BITMAP_H_
|
| +
|
| +#include "sky/compositor/display_delegate.h"
|
| +
|
| +namespace sky {
|
| +
|
| +class LayerClient;
|
| +
|
| +class DisplayDelegateBitmap final : public DisplayDelegate {
|
| + public:
|
| + explicit DisplayDelegateBitmap(LayerClient* client);
|
| + ~DisplayDelegateBitmap() override;
|
| +
|
| + static DisplayDelegate* create(LayerClient* client);
|
| +
|
| + void GetPixelsForTesting(std::vector<unsigned char>* pixels) override;
|
| + void Paint(mojo::GaneshSurface& surface, const gfx::Rect& size) override;
|
| +
|
| + private:
|
| + SkBitmap bitmap_;
|
| + LayerClient* client_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DisplayDelegateBitmap);
|
| +};
|
| +
|
| +} // namespace sky
|
| +
|
| +#endif // SKY_COMPOSITOR_DISPLAY_DELEGATE_BITMAP_H_
|
|
|