The DisplayVirtualKeyboard function on Windows 8 and beyond should not be displaying...
[chromium-blink-merge.git] / cc / layers / picture_image_layer_impl.h
blobdb36a1381921033150ac9dd2a2550b368c4cd2c7
1 // Copyright 2013 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_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_
8 #include "cc/layers/picture_layer_impl.h"
10 namespace cc {
12 class CC_EXPORT PictureImageLayerImpl : public PictureLayerImpl {
13 public:
14 static scoped_ptr<PictureImageLayerImpl> Create(LayerTreeImpl* tree_impl,
15 int id) {
16 return make_scoped_ptr(new PictureImageLayerImpl(tree_impl, id));
18 virtual ~PictureImageLayerImpl();
20 // LayerImpl overrides.
21 virtual const char* LayerTypeAsString() const override;
22 virtual scoped_ptr<LayerImpl> CreateLayerImpl(
23 LayerTreeImpl* tree_impl) override;
25 protected:
26 PictureImageLayerImpl(LayerTreeImpl* tree_impl, int id);
28 virtual bool ShouldAdjustRasterScale() const override;
29 virtual void RecalculateRasterScales() override;
30 virtual void GetDebugBorderProperties(
31 SkColor* color, float* width) const override;
33 virtual void UpdateIdealScales() override;
35 private:
36 DISALLOW_COPY_AND_ASSIGN(PictureImageLayerImpl);
39 } // namespace cc
41 #endif // CC_LAYERS_PICTURE_IMAGE_LAYER_IMPL_H_