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

Side by Side Diff: cc/tiled_layer_impl.h

Issue 11450019: Finish the rename from cc::GraphicsContext to cc::OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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_TILED_LAYER_IMPL_H_ 5 #ifndef CC_TILED_LAYER_IMPL_H_
6 #define CC_TILED_LAYER_IMPL_H_ 6 #define CC_TILED_LAYER_IMPL_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
10 10
(...skipping 15 matching lines...) Expand all
26 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; 26 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
27 27
28 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; 28 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE;
29 29
30 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; } 30 void setSkipsDraw(bool skipsDraw) { m_skipsDraw = skipsDraw; }
31 void setTilingData(const LayerTilingData& tiler); 31 void setTilingData(const LayerTilingData& tiler);
32 void pushTileProperties(int, int, ResourceProvider::ResourceId, const gfx::R ect& opaqueRect, bool contentsSwizzled); 32 void pushTileProperties(int, int, ResourceProvider::ResourceId, const gfx::R ect& opaqueRect, bool contentsSwizzled);
33 void pushInvalidTile(int, int); 33 void pushInvalidTile(int, int);
34 34
35 virtual Region visibleContentOpaqueRegion() const OVERRIDE; 35 virtual Region visibleContentOpaqueRegion() const OVERRIDE;
36 virtual void didLoseContext() OVERRIDE; 36 virtual void didLoseOutputSurface() OVERRIDE;
37 37
38 protected: 38 protected:
39 explicit TiledLayerImpl(int id); 39 explicit TiledLayerImpl(int id);
40 // Exposed for testing. 40 // Exposed for testing.
41 bool hasTileAt(int, int) const; 41 bool hasTileAt(int, int) const;
42 bool hasResourceIdForTileAt(int, int) const; 42 bool hasResourceIdForTileAt(int, int) const;
43 43
44 virtual void getDebugBorderProperties(SkColor*, float* width) const OVERRIDE ; 44 virtual void getDebugBorderProperties(SkColor*, float* width) const OVERRIDE ;
45 45
46 private: 46 private:
47 47
48 virtual const char* layerTypeAsString() const OVERRIDE; 48 virtual const char* layerTypeAsString() const OVERRIDE;
49 49
50 DrawableTile* tileAt(int, int) const; 50 DrawableTile* tileAt(int, int) const;
51 DrawableTile* createTile(int, int); 51 DrawableTile* createTile(int, int);
52 52
53 bool m_skipsDraw; 53 bool m_skipsDraw;
54 54
55 scoped_ptr<LayerTilingData> m_tiler; 55 scoped_ptr<LayerTilingData> m_tiler;
56 }; 56 };
57 57
58 } 58 }
59 59
60 #endif // CC_TILED_LAYER_IMPL_H_ 60 #endif // CC_TILED_LAYER_IMPL_H_
OLDNEW
« cc/layer_tree_host.cc ('K') | « cc/thread_proxy.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698