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

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

Issue 1381163002: Add a flag to disable partial raster in renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 45 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
46 void PushPropertiesTo(LayerImpl* layer) override; 46 void PushPropertiesTo(LayerImpl* layer) override;
47 void AppendQuads(RenderPass* render_pass, 47 void AppendQuads(RenderPass* render_pass,
48 AppendQuadsData* append_quads_data) override; 48 AppendQuadsData* append_quads_data) override;
49 void NotifyTileStateChanged(const Tile* tile) override; 49 void NotifyTileStateChanged(const Tile* tile) override;
50 void DidBeginTracing() override; 50 void DidBeginTracing() override;
51 void ReleaseResources() override; 51 void ReleaseResources() override;
52 void RecreateResources() override; 52 void RecreateResources() override;
53 skia::RefPtr<SkPicture> GetPicture() override; 53 skia::RefPtr<SkPicture> GetPicture() override;
54 Region GetInvalidationRegion() override; 54 Region GetInvalidationRegion() override;
55 gfx::Rect GetEnclosingRectInTargetSpace() const override;
ericrk 2015/10/02 20:15:14 Moved this up from below - was in the wrong sectio
55 56
56 // PictureLayerTilingClient overrides. 57 // PictureLayerTilingClient overrides.
57 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; 58 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override;
58 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 59 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
59 const Region* GetPendingInvalidation() override; 60 const Region* GetPendingInvalidation() override;
60 const PictureLayerTiling* GetPendingOrActiveTwinTiling( 61 const PictureLayerTiling* GetPendingOrActiveTwinTiling(
61 const PictureLayerTiling* tiling) const override; 62 const PictureLayerTiling* tiling) const override;
62 bool HasValidTilePriorities() const override; 63 bool HasValidTilePriorities() const override;
63 bool RequiresHighResToDraw() const override; 64 bool RequiresHighResToDraw() const override;
64 gfx::Rect GetEnclosingRectInTargetSpace() const override; 65 bool EnablePartialRaster() const override;
65 66
66 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) { 67 void set_gpu_raster_max_texture_size(gfx::Size gpu_raster_max_texture_size) {
67 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size; 68 gpu_raster_max_texture_size_ = gpu_raster_max_texture_size;
68 } 69 }
69 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source, 70 void UpdateRasterSource(scoped_refptr<RasterSource> raster_source,
70 Region* new_invalidation, 71 Region* new_invalidation,
71 const PictureLayerTilingSet* pending_set); 72 const PictureLayerTilingSet* pending_set);
72 bool UpdateTiles(bool resourceless_software_draw); 73 bool UpdateTiles(bool resourceless_software_draw);
73 void UpdateCanUseLCDTextAfterCommit(); 74 void UpdateCanUseLCDTextAfterCommit();
74 bool RasterSourceUsesLCDText() const; 75 bool RasterSourceUsesLCDText() const;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // of comparing pointers, since objects pointed to are not guaranteed to 171 // of comparing pointers, since objects pointed to are not guaranteed to
171 // exist. 172 // exist.
172 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 173 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 175 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
175 }; 176 };
176 177
177 } // namespace cc 178 } // namespace cc
178 179
179 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 180 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698