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

Side by Side Diff: cc/layers/tiled_layer_impl.h

Issue 16211002: Skip drawing unsupported layers in forced software mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on r203584 Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 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 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_LAYERS_TILED_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_TILED_LAYER_IMPL_H_
6 #define CC_LAYERS_TILED_LAYER_IMPL_H_ 6 #define CC_LAYERS_TILED_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/layers/layer_impl.h" 11 #include "cc/layers/layer_impl.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class LayerTilingData; 15 class LayerTilingData;
16 class DrawableTile; 16 class DrawableTile;
17 17
18 class CC_EXPORT TiledLayerImpl : public LayerImpl { 18 class CC_EXPORT TiledLayerImpl : public LayerImpl {
19 public: 19 public:
20 static scoped_ptr<TiledLayerImpl> Create(LayerTreeImpl* tree_impl, int id) { 20 static scoped_ptr<TiledLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
21 return make_scoped_ptr(new TiledLayerImpl(tree_impl, id)); 21 return make_scoped_ptr(new TiledLayerImpl(tree_impl, id));
22 } 22 }
23 virtual ~TiledLayerImpl(); 23 virtual ~TiledLayerImpl();
24 24
25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
26 OVERRIDE; 26 OVERRIDE;
27 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 27 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
28 28
29 virtual bool WillDraw(DrawMode draw_mode,
30 ResourceProvider* resource_provider) OVERRIDE;
29 virtual void AppendQuads(QuadSink* quad_sink, 31 virtual void AppendQuads(QuadSink* quad_sink,
30 AppendQuadsData* append_quads_data) OVERRIDE; 32 AppendQuadsData* append_quads_data) OVERRIDE;
31 33
32 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; 34 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
33 35
34 virtual void DumpLayerProperties(std::string* str, int indent) const OVERRIDE; 36 virtual void DumpLayerProperties(std::string* str, int indent) const OVERRIDE;
35 37
36 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } 38 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; }
37 void SetTilingData(const LayerTilingData& tiler); 39 void SetTilingData(const LayerTilingData& tiler);
38 void PushTileProperties(int i, 40 void PushTileProperties(int i,
(...skipping 29 matching lines...) Expand all
68 bool skips_draw_; 70 bool skips_draw_;
69 71
70 scoped_ptr<LayerTilingData> tiler_; 72 scoped_ptr<LayerTilingData> tiler_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); 74 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl);
73 }; 75 };
74 76
75 } // namespace cc 77 } // namespace cc
76 78
77 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ 79 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698