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

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

Issue 1144523003: Rename cc::ResourceProvider::ResourceId to cc::ResourceId and move it to its own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/layers/tiled_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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TILED_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_TILED_LAYER_IMPL_H_
6 #define CC_LAYERS_TILED_LAYER_IMPL_H_ 6 #define CC_LAYERS_TILED_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 20 matching lines...) Expand all
31 ~TiledLayerImpl() override; 31 ~TiledLayerImpl() override;
32 32
33 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 33 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
34 void PushPropertiesTo(LayerImpl* layer) override; 34 void PushPropertiesTo(LayerImpl* layer) override;
35 35
36 bool WillDraw(DrawMode draw_mode, 36 bool WillDraw(DrawMode draw_mode,
37 ResourceProvider* resource_provider) override; 37 ResourceProvider* resource_provider) override;
38 void AppendQuads(RenderPass* render_pass, 38 void AppendQuads(RenderPass* render_pass,
39 AppendQuadsData* append_quads_data) override; 39 AppendQuadsData* append_quads_data) override;
40 40
41 void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 41 void GetContentsResourceId(ResourceId* resource_id,
42 gfx::Size* resource_size) const override; 42 gfx::Size* resource_size) const override;
43 43
44 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; } 44 void set_skips_draw(bool skips_draw) { skips_draw_ = skips_draw; }
45 void SetTilingData(const LayerTilingData& tiler); 45 void SetTilingData(const LayerTilingData& tiler);
46 void PushTileProperties(int i, 46 void PushTileProperties(int i,
47 int j, 47 int j,
48 ResourceProvider::ResourceId resource, 48 ResourceId resource,
49 bool contents_swizzled); 49 bool contents_swizzled);
50 void PushInvalidTile(int i, int j); 50 void PushInvalidTile(int i, int j);
51 51
52 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; 52 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override;
53 void ReleaseResources() override; 53 void ReleaseResources() override;
54 54
55 const LayerTilingData* TilingForTesting() const { return tiler_.get(); } 55 const LayerTilingData* TilingForTesting() const { return tiler_.get(); }
56 56
57 size_t GPUMemoryUsageInBytes() const override; 57 size_t GPUMemoryUsageInBytes() const override;
58 58
(...skipping 19 matching lines...) Expand all
78 bool skips_draw_; 78 bool skips_draw_;
79 79
80 scoped_ptr<LayerTilingData> tiler_; 80 scoped_ptr<LayerTilingData> tiler_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl); 82 DISALLOW_COPY_AND_ASSIGN(TiledLayerImpl);
83 }; 83 };
84 84
85 } // namespace cc 85 } // namespace cc
86 86
87 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_ 87 #endif // CC_LAYERS_TILED_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | cc/layers/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698