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

Side by Side Diff: cc/test/fake_picture_pile_impl.h

Issue 63443003: cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove analysis time from rendering stats 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/test/fake_picture_pile_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_FAKE_PICTURE_PILE_IMPL_H_ 5 #ifndef CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 6 #define CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/resources/picture_pile_impl.h" 9 #include "cc/resources/picture_pile_impl.h"
10 #include "cc/test/fake_content_layer_client.h" 10 #include "cc/test/fake_content_layer_client.h"
(...skipping 16 matching lines...) Expand all
27 const Region& recorded_region); 27 const Region& recorded_region);
28 28
29 static scoped_refptr<FakePicturePileImpl> CreatePile(); 29 static scoped_refptr<FakePicturePileImpl> CreatePile();
30 30
31 TilingData& tiling() { return tiling_; } 31 TilingData& tiling() { return tiling_; }
32 32
33 void AddRecordingAt(int x, int y); 33 void AddRecordingAt(int x, int y);
34 void RemoveRecordingAt(int x, int y); 34 void RemoveRecordingAt(int x, int y);
35 void RerecordPile(); 35 void RerecordPile();
36 36
37 void AnalyzeInRect(gfx::Rect content_rect,
38 float contents_scale,
39 Analysis* analysis);
40
37 void add_draw_rect(const gfx::RectF& rect) { 41 void add_draw_rect(const gfx::RectF& rect) {
38 client_.add_draw_rect(rect, default_paint_); 42 client_.add_draw_rect(rect, default_paint_);
39 } 43 }
40 44
41 void add_draw_bitmap(const SkBitmap& bitmap, gfx::Point point) { 45 void add_draw_bitmap(const SkBitmap& bitmap, gfx::Point point) {
42 client_.add_draw_bitmap(bitmap, point, default_paint_); 46 client_.add_draw_bitmap(bitmap, point, default_paint_);
43 } 47 }
44 48
45 void add_draw_rect_with_paint(const gfx::RectF& rect, const SkPaint& paint) { 49 void add_draw_rect_with_paint(const gfx::RectF& rect, const SkPaint& paint) {
46 client_.add_draw_rect(rect, paint); 50 client_.add_draw_rect(rect, paint);
(...skipping 25 matching lines...) Expand all
72 FakePicturePileImpl(); 76 FakePicturePileImpl();
73 virtual ~FakePicturePileImpl(); 77 virtual ~FakePicturePileImpl();
74 78
75 FakeContentLayerClient client_; 79 FakeContentLayerClient client_;
76 SkPaint default_paint_; 80 SkPaint default_paint_;
77 }; 81 };
78 82
79 } // namespace cc 83 } // namespace cc
80 84
81 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_ 85 #endif // CC_TEST_FAKE_PICTURE_PILE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool.cc ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698