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

Side by Side Diff: cc/tiled_layer_impl.h

Issue 11365239: cc: Add support for debugging layer borders directly in the compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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
« no previous file with comments | « cc/render_surface_impl.cc ('k') | cc/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_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 #include <public/WebTransformationMatrix.h> 10 #include <public/WebTransformationMatrix.h>
(...skipping 24 matching lines...) Expand all
35 35
36 virtual Region visibleContentOpaqueRegion() const OVERRIDE; 36 virtual Region visibleContentOpaqueRegion() const OVERRIDE;
37 virtual void didLoseContext() OVERRIDE; 37 virtual void didLoseContext() OVERRIDE;
38 38
39 protected: 39 protected:
40 explicit TiledLayerImpl(int id); 40 explicit TiledLayerImpl(int id);
41 // Exposed for testing. 41 // Exposed for testing.
42 bool hasTileAt(int, int) const; 42 bool hasTileAt(int, int) const;
43 bool hasResourceIdForTileAt(int, int) const; 43 bool hasResourceIdForTileAt(int, int) const;
44 44
45 virtual void getDebugBorderProperties(SkColor*, float* width) const OVERRIDE ;
46
45 private: 47 private:
46 48
47 virtual const char* layerTypeAsString() const OVERRIDE; 49 virtual const char* layerTypeAsString() const OVERRIDE;
48 50
49 DrawableTile* tileAt(int, int) const; 51 DrawableTile* tileAt(int, int) const;
50 DrawableTile* createTile(int, int); 52 DrawableTile* createTile(int, int);
51 53
52 bool m_skipsDraw; 54 bool m_skipsDraw;
53 55
54 scoped_ptr<LayerTilingData> m_tiler; 56 scoped_ptr<LayerTilingData> m_tiler;
55 }; 57 };
56 58
57 } 59 }
58 60
59 #endif // CC_TILED_LAYER_IMPL_H_ 61 #endif // CC_TILED_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/render_surface_impl.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698