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

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

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pulling name when tracing Created 7 years, 5 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 | « no previous file | cc/layers/content_layer.cc » ('j') | cc/layers/layer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_CONTENT_LAYER_H_ 5 #ifndef CC_LAYERS_CONTENT_LAYER_H_
6 #define CC_LAYERS_CONTENT_LAYER_H_ 6 #define CC_LAYERS_CONTENT_LAYER_H_
7 7
8 #include <string>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
10 #include "cc/layers/tiled_layer.h" 12 #include "cc/layers/tiled_layer.h"
11 #include "cc/resources/layer_painter.h" 13 #include "cc/resources/layer_painter.h"
12 14
13 class SkCanvas; 15 class SkCanvas;
14 16
15 namespace cc { 17 namespace cc {
16 18
17 class ContentLayerClient; 19 class ContentLayerClient;
(...skipping 27 matching lines...) Expand all
45 OVERRIDE; 47 OVERRIDE;
46 virtual void Update(ResourceUpdateQueue* queue, 48 virtual void Update(ResourceUpdateQueue* queue,
47 const OcclusionTracker* occlusion, 49 const OcclusionTracker* occlusion,
48 RenderingStats* stats) OVERRIDE; 50 RenderingStats* stats) OVERRIDE;
49 virtual bool NeedMoreUpdates() OVERRIDE; 51 virtual bool NeedMoreUpdates() OVERRIDE;
50 52
51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; 53 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE;
52 54
53 virtual bool SupportsLCDText() const OVERRIDE; 55 virtual bool SupportsLCDText() const OVERRIDE;
54 56
57 virtual std::string DebugName() OVERRIDE;
58
55 protected: 59 protected:
56 explicit ContentLayer(ContentLayerClient* client); 60 explicit ContentLayer(ContentLayerClient* client);
57 virtual ~ContentLayer(); 61 virtual ~ContentLayer();
58 62
59 private: 63 private:
60 // TiledLayer implementation. 64 // TiledLayer implementation.
61 virtual LayerUpdater* Updater() const OVERRIDE; 65 virtual LayerUpdater* Updater() const OVERRIDE;
62 virtual void CreateUpdaterIfNeeded() OVERRIDE; 66 virtual void CreateUpdaterIfNeeded() OVERRIDE;
63 67
64 void UpdateCanUseLCDText(); 68 void UpdateCanUseLCDText();
65 69
66 ContentLayerClient* client_; 70 ContentLayerClient* client_;
67 scoped_refptr<LayerUpdater> updater_; 71 scoped_refptr<LayerUpdater> updater_;
68 bool can_use_lcd_text_last_frame_; 72 bool can_use_lcd_text_last_frame_;
69 73
70 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 74 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
71 }; 75 };
72 76
73 } // namespace cc 77 } // namespace cc
74 #endif // CC_LAYERS_CONTENT_LAYER_H_ 78 #endif // CC_LAYERS_CONTENT_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/content_layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698