Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: webkit/renderer/compositor_bindings/web_content_layer_impl.h

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2011 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.
4
5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/layers/content_layer_client.h"
10 #include "third_party/WebKit/public/platform/WebContentLayer.h"
11 #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
12 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
13
14 namespace cc {
15 class IntRect;
16 class FloatRect;
17 }
18
19 namespace blink { class WebContentLayerClient; }
20
21 namespace webkit {
22
23 class WebContentLayerImpl : public blink::WebContentLayer,
24 public cc::ContentLayerClient {
25 public:
26 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebContentLayerImpl(
27 blink::WebContentLayerClient*);
28
29 // WebContentLayer implementation.
30 virtual blink::WebLayer* layer();
31 virtual void setDoubleSided(bool double_sided);
32 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard);
33
34 protected:
35 virtual ~WebContentLayerImpl();
36
37 // ContentLayerClient implementation.
38 virtual void PaintContents(SkCanvas* canvas,
39 const gfx::Rect& clip,
40 gfx::RectF* opaque,
41 ContentLayerClient::GraphicsContextStatus
42 graphics_context_status) OVERRIDE;
43 virtual void DidChangeLayerCanUseLCDText() OVERRIDE;
44 virtual bool FillsBoundsCompletely() const OVERRIDE;
45
46 scoped_ptr<WebLayerImpl> layer_;
47 blink::WebContentLayerClient* client_;
48 bool draws_content_;
49
50 private:
51 bool can_use_lcd_text_;
52 bool ignore_lcd_text_change_;
53
54 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
55 };
56
57 } // namespace webkit
58
59 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698