summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_mask_layer_impl.cc
blob: 96dc6728daba129505a22b65813f4f110269c2e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2015 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/fake_mask_layer_impl.h"

namespace cc {

FakeMaskLayerImpl::FakeMaskLayerImpl(LayerTreeImpl* tree_impl, int id)
    : LayerImpl(tree_impl, id) {}

scoped_ptr<FakeMaskLayerImpl> FakeMaskLayerImpl::Create(
    LayerTreeImpl* tree_impl,
    int id) {
  return make_scoped_ptr(new FakeMaskLayerImpl(tree_impl, id));
}

void FakeMaskLayerImpl::GetContentsResourceId(ResourceId* resource_id,
                                              gfx::Size* resource_size) const {
  *resource_id = 0;
}

}  // namespace cc