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

Side by Side Diff: sky/viewer/cc/web_content_layer_impl.h

Issue 752683002: Break Sky's dependency on cc (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/viewer/cc/web_compositor_support_impl.cc ('k') | sky/viewer/cc/web_content_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 SKY_VIEWER_CC_WEB_CONTENT_LAYER_IMPL_H_
6 #define SKY_VIEWER_CC_WEB_CONTENT_LAYER_IMPL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "sky/viewer/cc/sky_viewer_cc_export.h"
10 #include "sky/viewer/cc/web_layer_impl.h"
11 #include "cc/layers/content_layer_client.h"
12 #include "sky/engine/public/platform/WebContentLayer.h"
13
14 namespace cc {
15 class IntRect;
16 class FloatRect;
17 }
18
19 namespace blink {
20 class WebContentLayerClient;
21 }
22
23 namespace sky_viewer_cc {
24
25 class WebContentLayerImpl : public blink::WebContentLayer,
26 public cc::ContentLayerClient {
27 public:
28 SKY_VIEWER_CC_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient *);
29
30 // WebContentLayer implementation.
31 virtual blink::WebLayer* layer();
32 virtual void setDoubleSided(bool double_sided);
33 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard);
34
35 protected:
36 virtual ~WebContentLayerImpl();
37
38 // ContentLayerClient implementation.
39 virtual void PaintContents(SkCanvas* canvas,
40 const gfx::Rect& clip,
41 ContentLayerClient::GraphicsContextStatus
42 graphics_context_status) override;
43 virtual bool FillsBoundsCompletely() const override;
44
45 scoped_ptr<WebLayerImpl> layer_;
46 blink::WebContentLayerClient* client_;
47 bool draws_content_;
48
49 private:
50
51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
52 };
53
54 } // namespace sky_viewer_cc
55
56 #endif // SKY_VIEWER_CC_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « sky/viewer/cc/web_compositor_support_impl.cc ('k') | sky/viewer/cc/web_content_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698