summaryrefslogtreecommitdiff
path: root/chromium/cc/resources/shared_bitmap_manager.h
blob: 7ee8c9ce2fb9e6cbb3e889d59718744d77f0ada2 (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
31
32
33
34
// Copyright 2013 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_RESOURCES_SHARED_BITMAP_MANAGER_H_
#define CC_RESOURCES_SHARED_BITMAP_MANAGER_H_

#include <memory>

#include "base/macros.h"
#include "cc/base/cc_export.h"
#include "cc/resources/shared_bitmap.h"
#include "ui/gfx/geometry/size.h"

namespace cc {

class CC_EXPORT SharedBitmapManager {
 public:
  SharedBitmapManager() {}
  virtual ~SharedBitmapManager() {}

  virtual std::unique_ptr<SharedBitmap> AllocateSharedBitmap(
      const gfx::Size&) = 0;
  virtual std::unique_ptr<SharedBitmap> GetSharedBitmapFromId(
      const gfx::Size&,
      const SharedBitmapId&) = 0;

 private:
  DISALLOW_COPY_AND_ASSIGN(SharedBitmapManager);
};

}  // namespace cc

#endif  // CC_RESOURCES_SHARED_BITMAP_MANAGER_H_