summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_image_serialization_processor.h
blob: 613e93b1356ab2b08cbfb8cee6d3a92f13071e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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.

#ifndef CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_
#define CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_

#include "base/macros.h"
#include "cc/proto/image_serialization_processor.h"

class SkPixelSerializer;

namespace cc {

class FakeImageSerializationProcessor : public ImageSerializationProcessor {
 public:
  FakeImageSerializationProcessor();
  ~FakeImageSerializationProcessor();

  // ImageSerializationProcessor implementation.
  SkPixelSerializer* GetPixelSerializer() override;
  SkPicture::InstallPixelRefProc GetPixelDeserializer() override;

 private:
  DISALLOW_COPY_AND_ASSIGN(FakeImageSerializationProcessor);
};

}  // namespace cc

#endif  // CC_TEST_FAKE_IMAGE_SERIALIZATION_PROCESSOR_H_