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

Side by Side Diff: cc/blink/web_content_layer_impl.h

Issue 1271843005: cc: Remove code for drawing checkerboard quads, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-checkers: sizes Created 5 years, 4 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
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blink/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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/blink/cc_blink_export.h" 9 #include "cc/blink/cc_blink_export.h"
10 #include "cc/blink/web_layer_impl.h" 10 #include "cc/blink/web_layer_impl.h"
(...skipping 12 matching lines...) Expand all
23 namespace cc_blink { 23 namespace cc_blink {
24 24
25 class WebContentLayerImpl : public blink::WebContentLayer, 25 class WebContentLayerImpl : public blink::WebContentLayer,
26 public cc::ContentLayerClient { 26 public cc::ContentLayerClient {
27 public: 27 public:
28 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*); 28 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*);
29 29
30 // WebContentLayer implementation. 30 // WebContentLayer implementation.
31 virtual blink::WebLayer* layer(); 31 virtual blink::WebLayer* layer();
32 virtual void setDoubleSided(bool double_sided); 32 virtual void setDoubleSided(bool double_sided);
33 // TODO(danakj): Remove me.
33 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard); 34 virtual void setDrawCheckerboardForMissingTiles(bool checkerboard);
34 35
35 protected: 36 protected:
36 virtual ~WebContentLayerImpl(); 37 virtual ~WebContentLayerImpl();
37 38
38 // ContentLayerClient implementation. 39 // ContentLayerClient implementation.
39 void PaintContents(SkCanvas* canvas, 40 void PaintContents(SkCanvas* canvas,
40 const gfx::Rect& clip, 41 const gfx::Rect& clip,
41 PaintingControlSetting painting_control) override; 42 PaintingControlSetting painting_control) override;
42 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 43 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList(
43 const gfx::Rect& clip, 44 const gfx::Rect& clip,
44 PaintingControlSetting painting_control) override; 45 PaintingControlSetting painting_control) override;
45 bool FillsBoundsCompletely() const override; 46 bool FillsBoundsCompletely() const override;
46 size_t GetApproximateUnsharedMemoryUsage() const override; 47 size_t GetApproximateUnsharedMemoryUsage() const override;
47 48
48 scoped_ptr<WebLayerImpl> layer_; 49 scoped_ptr<WebLayerImpl> layer_;
49 blink::WebContentLayerClient* client_; 50 blink::WebContentLayerClient* client_;
50 bool draws_content_; 51 bool draws_content_;
51 52
52 private: 53 private:
53 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); 54 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
54 }; 55 };
55 56
56 } // namespace cc_blink 57 } // namespace cc_blink
57 58
58 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 59 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blink/web_content_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698