blob: 0eb1a8124f85210f758d8b8ae40feff3739cbde0 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2011 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 WebContentLayerImpl_h
#define WebContentLayerImpl_h
#include "ContentLayerChromiumClient.h"
#include "WebLayerImpl.h"
#include <public/WebContentLayer.h>
#include <wtf/OwnPtr.h>
namespace cc {
class IntRect;
class FloatRect;
}
namespace WebKit {
class WebContentLayerClient;
class WebContentLayerImpl : public WebContentLayer,
public cc::ContentLayerChromiumClient {
public:
explicit WebContentLayerImpl(WebContentLayerClient*);
// WebContentLayer implementation.
virtual WebLayer* layer() OVERRIDE;
virtual void setDoubleSided(bool) OVERRIDE;
virtual void setBoundsContainPageScale(bool) OVERRIDE;
virtual bool boundsContainPageScale() const OVERRIDE;
virtual void setUseLCDText(bool) OVERRIDE;
virtual void setDrawCheckerboardForMissingTiles(bool) OVERRIDE;
protected:
virtual ~WebContentLayerImpl();
// ContentLayerChromiumClient implementation.
virtual void paintContents(SkCanvas*, const cc::IntRect& clip, cc::FloatRect& opaque) OVERRIDE;
OwnPtr<WebLayerImpl> m_layer;
WebContentLayerClient* m_client;
bool m_drawsContent;
};
} // namespace WebKit
#endif // WebContentLayerImpl_h
|