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

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

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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 | « cc/input/scrollbar.h ('k') | cc/layers/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 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"
11 #include "cc/resources/layer_painter.h" 11 #include "cc/resources/layer_painter.h"
12 12
13 class SkCanvas; 13 class SkCanvas;
14 14
15 namespace cc { 15 namespace cc {
16 16
17 class ContentLayerClient; 17 class ContentLayerClient;
18 class ContentLayerUpdater; 18 class ContentLayerUpdater;
19 19
20 class CC_EXPORT ContentLayerPainter : public LayerPainter { 20 class CC_EXPORT ContentLayerPainter : public LayerPainter {
21 public: 21 public:
22 static scoped_ptr<ContentLayerPainter> Create(ContentLayerClient* client); 22 static scoped_ptr<ContentLayerPainter> Create(ContentLayerClient* client);
23 23
24 virtual void Paint(SkCanvas* canvas, 24 virtual void Paint(SkCanvas* canvas,
25 gfx::Rect content_rect, 25 const gfx::Rect& content_rect,
26 gfx::RectF* opaque) OVERRIDE; 26 gfx::RectF* opaque) OVERRIDE;
27 27
28 private: 28 private:
29 explicit ContentLayerPainter(ContentLayerClient* client); 29 explicit ContentLayerPainter(ContentLayerClient* client);
30 30
31 ContentLayerClient* client_; 31 ContentLayerClient* client_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter); 33 DISALLOW_COPY_AND_ASSIGN(ContentLayerPainter);
34 }; 34 };
35 35
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 ContentLayerClient* client_; 72 ContentLayerClient* client_;
73 scoped_refptr<ContentLayerUpdater> updater_; 73 scoped_refptr<ContentLayerUpdater> updater_;
74 bool can_use_lcd_text_last_frame_; 74 bool can_use_lcd_text_last_frame_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(ContentLayer); 76 DISALLOW_COPY_AND_ASSIGN(ContentLayer);
77 }; 77 };
78 78
79 } // namespace cc 79 } // namespace cc
80 #endif // CC_LAYERS_CONTENT_LAYER_H_ 80 #endif // CC_LAYERS_CONTENT_LAYER_H_
OLDNEW
« no previous file with comments | « cc/input/scrollbar.h ('k') | cc/layers/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698