Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / cc / test / fake_picture_layer.h
blobb1a9eabeeea6e77e1cabaabe256293d743cf9817
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_TEST_FAKE_PICTURE_LAYER_H_
6 #define CC_TEST_FAKE_PICTURE_LAYER_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "cc/layers/picture_layer.h"
12 namespace cc {
14 class FakePictureLayer : public PictureLayer {
15 public:
16 static scoped_refptr<FakePictureLayer> Create(ContentLayerClient* client) {
17 return make_scoped_refptr(new FakePictureLayer(client));
20 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
21 OVERRIDE;
23 size_t update_count() const { return update_count_; }
24 void reset_update_count() { update_count_ = 0; }
26 virtual void Update(
27 ResourceUpdateQueue* queue,
28 const OcclusionTracker* occlusion,
29 RenderingStats* stats) OVERRIDE;
31 private:
32 explicit FakePictureLayer(ContentLayerClient* client);
33 virtual ~FakePictureLayer();
35 size_t update_count_;
38 } // namespace cc
40 #endif // CC_TEST_FAKE_PICTURE_LAYER_H_