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

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

Issue 308193003: Removed QuadSink and MockQuadCuller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumLayerImpl
Patch Set: rm unused line Created 6 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
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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/base/scoped_ptr_vector.h" 12 #include "cc/base/scoped_ptr_vector.h"
13 #include "cc/layers/layer_impl.h" 13 #include "cc/layers/layer_impl.h"
14 #include "cc/resources/picture_layer_tiling.h" 14 #include "cc/resources/picture_layer_tiling.h"
15 #include "cc/resources/picture_layer_tiling_set.h" 15 #include "cc/resources/picture_layer_tiling_set.h"
16 #include "cc/resources/picture_pile_impl.h" 16 #include "cc/resources/picture_pile_impl.h"
17 #include "skia/ext/refptr.h" 17 #include "skia/ext/refptr.h"
18 #include "third_party/skia/include/core/SkPicture.h" 18 #include "third_party/skia/include/core/SkPicture.h"
19 19
20 namespace cc { 20 namespace cc {
21 21
22 struct AppendQuadsData; 22 struct AppendQuadsData;
23 class QuadSink;
24 class MicroBenchmarkImpl; 23 class MicroBenchmarkImpl;
25 class Tile; 24 class Tile;
26 25
27 class CC_EXPORT PictureLayerImpl 26 class CC_EXPORT PictureLayerImpl
28 : public LayerImpl, 27 : public LayerImpl,
29 NON_EXPORTED_BASE(public PictureLayerTilingClient) { 28 NON_EXPORTED_BASE(public PictureLayerTilingClient) {
30 public: 29 public:
31 class CC_EXPORT LayerRasterTileIterator { 30 class CC_EXPORT LayerRasterTileIterator {
32 public: 31 public:
33 LayerRasterTileIterator(); 32 LayerRasterTileIterator();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) { 81 static scoped_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, int id) {
83 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id)); 82 return make_scoped_ptr(new PictureLayerImpl(tree_impl, id));
84 } 83 }
85 virtual ~PictureLayerImpl(); 84 virtual ~PictureLayerImpl();
86 85
87 // LayerImpl overrides. 86 // LayerImpl overrides.
88 virtual const char* LayerTypeAsString() const OVERRIDE; 87 virtual const char* LayerTypeAsString() const OVERRIDE;
89 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 88 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
90 OVERRIDE; 89 OVERRIDE;
91 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 90 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
92 virtual void AppendQuads(QuadSink* quad_sink, 91 virtual void AppendQuads(RenderPass* render_pass,
92 const OcclusionTracker<LayerImpl>& occlusion_tracker,
93 AppendQuadsData* append_quads_data) OVERRIDE; 93 AppendQuadsData* append_quads_data) OVERRIDE;
94 virtual void UpdateTilePriorities() OVERRIDE; 94 virtual void UpdateTilePriorities() OVERRIDE;
95 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; 95 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE;
96 virtual void DidBecomeActive() OVERRIDE; 96 virtual void DidBecomeActive() OVERRIDE;
97 virtual void DidBeginTracing() OVERRIDE; 97 virtual void DidBeginTracing() OVERRIDE;
98 virtual void ReleaseResources() OVERRIDE; 98 virtual void ReleaseResources() OVERRIDE;
99 virtual void CalculateContentsScale(float ideal_contents_scale, 99 virtual void CalculateContentsScale(float ideal_contents_scale,
100 float device_scale_factor, 100 float device_scale_factor,
101 float page_scale_factor, 101 float page_scale_factor,
102 float maximum_animation_contents_scale, 102 float maximum_animation_contents_scale,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 gfx::Size viewport_size_for_tile_priority_; 215 gfx::Size viewport_size_for_tile_priority_;
216 gfx::Transform screen_space_transform_for_tile_priority_; 216 gfx::Transform screen_space_transform_for_tile_priority_;
217 217
218 friend class PictureLayer; 218 friend class PictureLayer;
219 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 219 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
220 }; 220 };
221 221
222 } // namespace cc 222 } // namespace cc
223 223
224 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 224 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698