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

Side by Side Diff: cc/content_layer.h

Issue 11144023: cc: Store tiles, painters, tiling data in scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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 | « cc/canvas_layer_texture_updater.cc ('k') | cc/content_layer.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 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 5
6 #ifndef ContentLayerChromium_h 6 #ifndef ContentLayerChromium_h
7 #define ContentLayerChromium_h 7 #define ContentLayerChromium_h
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "LayerPainterChromium.h" 10 #include "LayerPainterChromium.h"
11 #include "TiledLayerChromium.h" 11 #include "TiledLayerChromium.h"
12 12
13 class SkCanvas; 13 class SkCanvas;
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class ContentLayerChromiumClient; 17 class ContentLayerChromiumClient;
18 class FloatRect; 18 class FloatRect;
19 class IntRect; 19 class IntRect;
20 class LayerTextureUpdater; 20 class LayerTextureUpdater;
21 21
22 class ContentLayerPainter : public LayerPainterChromium { 22 class ContentLayerPainter : public LayerPainterChromium {
23 public: 23 public:
24 static PassOwnPtr<ContentLayerPainter> create(ContentLayerChromiumClient*); 24 static scoped_ptr<ContentLayerPainter> create(ContentLayerChromiumClient*);
25 25
26 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE; 26 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE;
27 27
28 private: 28 private:
29 explicit ContentLayerPainter(ContentLayerChromiumClient*); 29 explicit ContentLayerPainter(ContentLayerChromiumClient*);
30 30
31 ContentLayerChromiumClient* m_client; 31 ContentLayerChromiumClient* m_client;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); 33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter);
34 }; 34 };
(...skipping 19 matching lines...) Expand all
54 private: 54 private:
55 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE; 55 virtual LayerTextureUpdater* textureUpdater() const OVERRIDE;
56 virtual void createTextureUpdaterIfNeeded() OVERRIDE; 56 virtual void createTextureUpdaterIfNeeded() OVERRIDE;
57 57
58 ContentLayerChromiumClient* m_client; 58 ContentLayerChromiumClient* m_client;
59 RefPtr<LayerTextureUpdater> m_textureUpdater; 59 RefPtr<LayerTextureUpdater> m_textureUpdater;
60 }; 60 };
61 61
62 } 62 }
63 #endif 63 #endif
OLDNEW
« no previous file with comments | « cc/canvas_layer_texture_updater.cc ('k') | cc/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698