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

Side by Side Diff: cc/picture_layer.h

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « cc/layer_tree_impl.cc ('k') | cc/picture_layer.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_PICTURE_LAYER_H_ 5 #ifndef CC_PICTURE_LAYER_H_
6 #define CC_PICTURE_LAYER_H_ 6 #define CC_PICTURE_LAYER_H_
7 7
8 #include "cc/contents_scaling_layer.h" 8 #include "cc/contents_scaling_layer.h"
9 #include "cc/layer.h" 9 #include "cc/layer.h"
10 #include "cc/picture_pile.h" 10 #include "cc/picture_pile.h"
(...skipping 12 matching lines...) Expand all
23 void clearClient() { client_ = 0; } 23 void clearClient() { client_ = 0; }
24 24
25 // Implement Layer interface 25 // Implement Layer interface
26 virtual bool drawsContent() const OVERRIDE; 26 virtual bool drawsContent() const OVERRIDE;
27 virtual scoped_ptr<LayerImpl> createLayerImpl( 27 virtual scoped_ptr<LayerImpl> createLayerImpl(
28 LayerTreeImpl* treeImpl) OVERRIDE; 28 LayerTreeImpl* treeImpl) OVERRIDE;
29 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; 29 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
30 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE; 30 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE;
31 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, 31 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*,
32 RenderingStats&) OVERRIDE; 32 RenderingStats&) OVERRIDE;
33 virtual void setIsMask(bool is_mask) OVERRIDE;
33 34
34 protected: 35 protected:
35 explicit PictureLayer(ContentLayerClient*); 36 explicit PictureLayer(ContentLayerClient*);
36 virtual ~PictureLayer(); 37 virtual ~PictureLayer();
37 38
38 private: 39 private:
39 ContentLayerClient* client_; 40 ContentLayerClient* client_;
40 PicturePile pile_; 41 PicturePile pile_;
41 // Invalidation to use the next time update is called. 42 // Invalidation to use the next time update is called.
42 Region pending_invalidation_; 43 Region pending_invalidation_;
43 // Invalidation from the last time update was called. 44 // Invalidation from the last time update was called.
44 Region pile_invalidation_; 45 Region pile_invalidation_;
46 bool is_mask_;
45 }; 47 };
46 48
47 } // namespace cc 49 } // namespace cc
48 50
49 #endif // CC_PICTURE_LAYER_H_ 51 #endif // CC_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_impl.cc ('k') | cc/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698