blob: 541a0af79b11015e659b6077cff40c439d6bb899 (
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
48
49
50
51
52
|
// 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 "base/memory/scoped_ptr.h"
#include "cc/content_layer_client.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayer.h"
#include "webkit/compositor_bindings/web_layer_impl.h"
#include "webkit/compositor_bindings/webkit_compositor_bindings_export.h"
namespace cc {
class IntRect;
class FloatRect;
}
namespace WebKit {
class WebContentLayerClient;
class WebContentLayerImpl : public WebContentLayer,
public cc::ContentLayerClient {
public:
WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl(
WebContentLayerClient*);
// WebContentLayer implementation.
virtual WebLayer* layer();
virtual void setDoubleSided(bool);
virtual void setBoundsContainPageScale(bool);
virtual bool boundsContainPageScale() const;
virtual void setUseLCDText(bool);
virtual void setDrawCheckerboardForMissingTiles(bool);
virtual void setAutomaticallyComputeRasterScale(bool);
protected:
virtual ~WebContentLayerImpl();
// ContentLayerClient implementation.
virtual void PaintContents(SkCanvas* canvas,
gfx::Rect clip,
gfx::RectF* opaque) OVERRIDE;
scoped_ptr<WebLayerImpl> layer_;
WebContentLayerClient* client_;
bool draws_content_;
};
} // namespace WebKit
#endif // WebContentLayerImpl_h
|