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

Side by Side Diff: cc/content_layer.h

Issue 11266030: Use gfx:: Geometry types for the resource provider and layer updater classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint8 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/caching_bitmap_content_layer_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 #ifndef ContentLayerChromium_h 5 #ifndef ContentLayerChromium_h
6 #define ContentLayerChromium_h 6 #define ContentLayerChromium_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/layer_painter.h" 9 #include "cc/layer_painter.h"
10 #include "cc/tiled_layer.h" 10 #include "cc/tiled_layer.h"
11 11
12 class SkCanvas; 12 class SkCanvas;
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class ContentLayerClient; 16 class ContentLayerClient;
17 class FloatRect;
18 class IntRect;
19 class LayerUpdater; 17 class LayerUpdater;
20 18
21 class ContentLayerPainter : public LayerPainter { 19 class ContentLayerPainter : public LayerPainter {
22 public: 20 public:
23 static scoped_ptr<ContentLayerPainter> create(ContentLayerClient*); 21 static scoped_ptr<ContentLayerPainter> create(ContentLayerClient*);
24 22
25 virtual void paint(SkCanvas*, const IntRect& contentRect, FloatRect& opaque) OVERRIDE; 23 virtual void paint(SkCanvas*, const gfx::Rect& contentRect, gfx::RectF& opaq ue) OVERRIDE;
26 24
27 private: 25 private:
28 explicit ContentLayerPainter(ContentLayerClient*); 26 explicit ContentLayerPainter(ContentLayerClient*);
29 27
30 ContentLayerClient* m_client; 28 ContentLayerClient* m_client;
31 29
32 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); 30 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter);
33 }; 31 };
34 32
35 // A layer that renders its contents into an SkCanvas. 33 // A layer that renders its contents into an SkCanvas.
(...skipping 17 matching lines...) Expand all
53 private: 51 private:
54 virtual LayerUpdater* updater() const OVERRIDE; 52 virtual LayerUpdater* updater() const OVERRIDE;
55 virtual void createUpdaterIfNeeded() OVERRIDE; 53 virtual void createUpdaterIfNeeded() OVERRIDE;
56 54
57 ContentLayerClient* m_client; 55 ContentLayerClient* m_client;
58 scoped_refptr<LayerUpdater> m_updater; 56 scoped_refptr<LayerUpdater> m_updater;
59 }; 57 };
60 58
61 } 59 }
62 #endif 60 #endif
OLDNEW
« no previous file with comments | « cc/caching_bitmap_content_layer_updater.cc ('k') | cc/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698