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

Side by Side Diff: ui/compositor/paint_recorder.h

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_COMPOSITOR_PAINT_RECORDER_H_ 5 #ifndef UI_COMPOSITOR_PAINT_RECORDER_H_
6 #define UI_COMPOSITOR_PAINT_RECORDER_H_ 6 #define UI_COMPOSITOR_PAINT_RECORDER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 23 matching lines...) Expand all
34 PaintRecorder(const PaintContext& context, const gfx::Size& recording_size); 34 PaintRecorder(const PaintContext& context, const gfx::Size& recording_size);
35 ~PaintRecorder(); 35 ~PaintRecorder();
36 36
37 // Gets a gfx::Canvas for painting into. 37 // Gets a gfx::Canvas for painting into.
38 gfx::Canvas* canvas() { return &canvas_; } 38 gfx::Canvas* canvas() { return &canvas_; }
39 39
40 private: 40 private:
41 const PaintContext& context_; 41 const PaintContext& context_;
42 gfx::Canvas canvas_; 42 gfx::Canvas canvas_;
43 PaintCache* cache_; 43 PaintCache* cache_;
44 gfx::Rect bounds_in_layer_; 44 gfx::Size recording_size_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(PaintRecorder); 46 DISALLOW_COPY_AND_ASSIGN(PaintRecorder);
47 }; 47 };
48 48
49 } // namespace ui 49 } // namespace ui
50 50
51 #endif // UI_COMPOSITOR_PAINT_RECORDER_H_ 51 #endif // UI_COMPOSITOR_PAINT_RECORDER_H_
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebDisplayItemList.h ('k') | ui/compositor/paint_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698