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

Side by Side Diff: cc/picture_layer.h

Issue 11421210: cc: Apply contents scales to impl-side painting rasterization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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 | « no previous file | cc/picture_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 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/layer.h" 9 #include "cc/layer.h"
9 #include "cc/picture_pile.h" 10 #include "cc/picture_pile.h"
10 #include "cc/occlusion_tracker.h" 11 #include "cc/occlusion_tracker.h"
11 12
12 namespace cc { 13 namespace cc {
13 14
14 class ContentLayerClient; 15 class ContentLayerClient;
15 class ResourceUpdateQueue; 16 class ResourceUpdateQueue;
16 struct RenderingStats; 17 struct RenderingStats;
17 18
18 class CC_EXPORT PictureLayer : public Layer { 19 class CC_EXPORT PictureLayer : public ContentsScalingLayer {
19 public: 20 public:
20 static scoped_refptr<PictureLayer> create(ContentLayerClient*); 21 static scoped_refptr<PictureLayer> create(ContentLayerClient*);
21 22
22 void clearClient() { client_ = 0; } 23 void clearClient() { client_ = 0; }
23 24
24 // Implement Layer interface 25 // Implement Layer interface
25 virtual bool drawsContent() const OVERRIDE; 26 virtual bool drawsContent() const OVERRIDE;
26 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; 27 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE;
27 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; 28 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
28 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE; 29 virtual void setNeedsDisplayRect(const gfx::RectF& layerRect) OVERRIDE;
29 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*, 30 virtual void update(ResourceUpdateQueue&, const OcclusionTracker*,
30 RenderingStats&) OVERRIDE; 31 RenderingStats&) OVERRIDE;
31 32
32 protected: 33 protected:
33 explicit PictureLayer(ContentLayerClient*); 34 explicit PictureLayer(ContentLayerClient*);
34 virtual ~PictureLayer(); 35 virtual ~PictureLayer();
35 36
36 private: 37 private:
37 ContentLayerClient* client_; 38 ContentLayerClient* client_;
38 PicturePile pile_; 39 PicturePile pile_;
39 // Invalidation to use the next time update is called. 40 // Invalidation to use the next time update is called.
40 Region pending_invalidation_; 41 Region pending_invalidation_;
41 // Invalidation from the last time update was called. 42 // Invalidation from the last time update was called.
42 Region pile_invalidation_; 43 Region pile_invalidation_;
43 }; 44 };
44 45
45 } // namespace cc 46 } // namespace cc
46 47
47 #endif // CC_PICTURE_LAYER_H_ 48 #endif // CC_PICTURE_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698