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

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

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/content_layer.cc » ('j') | cc/layers/content_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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/layers/tiled_layer.h" 10 #include "cc/layers/tiled_layer.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual bool DrawsContent() const OVERRIDE; 43 virtual bool DrawsContent() const OVERRIDE;
44 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; 44 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE;
45 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) 45 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc)
46 OVERRIDE; 46 OVERRIDE;
47 virtual bool Update(ResourceUpdateQueue* queue, 47 virtual bool Update(ResourceUpdateQueue* queue,
48 const OcclusionTracker* occlusion) OVERRIDE; 48 const OcclusionTracker* occlusion) OVERRIDE;
49 virtual bool NeedMoreUpdates() OVERRIDE; 49 virtual bool NeedMoreUpdates() OVERRIDE;
50 50
51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE; 51 virtual void SetContentsOpaque(bool contents_opaque) OVERRIDE;
52 52
53 virtual skia::RefPtr<SkPicture> GetPicture() const OVERRIDE;
54
53 virtual bool SupportsLCDText() const OVERRIDE; 55 virtual bool SupportsLCDText() const OVERRIDE;
54 56
55 protected: 57 protected:
56 explicit ContentLayer(ContentLayerClient* client); 58 explicit ContentLayer(ContentLayerClient* client);
57 virtual ~ContentLayer(); 59 virtual ~ContentLayer();
58 60
59 private: 61 private:
60 // TiledLayer implementation. 62 // TiledLayer implementation.
61 virtual LayerUpdater* Updater() const OVERRIDE; 63 virtual LayerUpdater* Updater() const OVERRIDE;
62 virtual void CreateUpdaterIfNeeded() OVERRIDE; 64 virtual void CreateUpdaterIfNeeded() OVERRIDE;
63 65
64 void UpdateCanUseLCDText(); 66 void UpdateCanUseLCDText();
65 67
66 ContentLayerClient* client_; 68 ContentLayerClient* client_;
67 scoped_refptr<ContentLayerUpdater> updater_; 69 scoped_refptr<ContentLayerUpdater> updater_;
68 bool can_use_lcd_text_last_frame_; 70 bool can_use_lcd_text_last_frame_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 72 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
71 }; 73 };
72 74
73 } // namespace cc 75 } // namespace cc
74 #endif // CC_LAYERS_CONTENT_LAYER_H_ 76 #endif // CC_LAYERS_CONTENT_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/content_layer.cc » ('j') | cc/layers/content_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698