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

Side by Side Diff: cc/resources/picture_pile_impl.h

Issue 12426024: cc: Switch RenderingStats collection in Layer::Update() to RenderingStatsInstrumentation (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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_RESOURCES_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_
6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/resources/picture_pile_base.h" 12 #include "cc/resources/picture_pile_base.h"
13 #include "skia/ext/analysis_canvas.h" 13 #include "skia/ext/analysis_canvas.h"
14 #include "skia/ext/refptr.h" 14 #include "skia/ext/refptr.h"
15 #include "third_party/skia/include/core/SkPicture.h" 15 #include "third_party/skia/include/core/SkPicture.h"
16 16
17 namespace cc { 17 namespace cc {
18 struct RenderingStats;
19 18
20 class CC_EXPORT PicturePileImpl : public PicturePileBase { 19 class CC_EXPORT PicturePileImpl : public PicturePileBase {
21 public: 20 public:
22 static scoped_refptr<PicturePileImpl> Create(); 21 static scoped_refptr<PicturePileImpl> Create();
23 static scoped_refptr<PicturePileImpl> CreateFromOther( 22 static scoped_refptr<PicturePileImpl> CreateFromOther(
24 const PicturePileBase* other); 23 const PicturePileBase* other);
25 24
26 // Get paint-safe version of this picture for a specific thread. 25 // Get paint-safe version of this picture for a specific thread.
27 PicturePileImpl* GetCloneForDrawingOnThread(unsigned thread_index) const; 26 PicturePileImpl* GetCloneForDrawingOnThread(unsigned thread_index) const;
28 27
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // This guarantees thread-safe access during the life 83 // This guarantees thread-safe access during the life
85 // time of a PicturePileImpl instance. 84 // time of a PicturePileImpl instance.
86 const ClonesForDrawing clones_for_drawing_; 85 const ClonesForDrawing clones_for_drawing_;
87 86
88 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); 87 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl);
89 }; 88 };
90 89
91 } // namespace cc 90 } // namespace cc
92 91
93 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ 92 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698