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

Unified Diff: cc/test/fake_content_layer_client.h

Issue 14230007: cc: Do GatherPixelRefs from skia at record time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.h
diff --git a/cc/test/fake_content_layer_client.h b/cc/test/fake_content_layer_client.h
index 155775419a34e83ab71ad23d45de25ecca508c9d..dfc8ce774d211dc9b3ac73abd8932ff033ee543b 100644
--- a/cc/test/fake_content_layer_client.h
+++ b/cc/test/fake_content_layer_client.h
@@ -10,6 +10,7 @@
#include "base/compiler_specific.h"
#include "cc/layers/content_layer_client.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "ui/gfx/rect.h"
@@ -31,11 +32,17 @@ class FakeContentLayerClient : public cc::ContentLayerClient {
draw_rects_.push_back(std::make_pair(rect, paint));
}
+ void add_draw_bitmap(const SkBitmap& bitmap, gfx::Point point) {
+ draw_bitmaps_.push_back(std::make_pair(bitmap, point));
+ }
+
private:
typedef std::vector<std::pair<gfx::Rect, SkPaint> > RectPaintVector;
+ typedef std::vector<std::pair<SkBitmap, gfx::Point> > BitmapVector;
bool paint_all_opaque_;
RectPaintVector draw_rects_;
+ BitmapVector draw_bitmaps_;
};
} // namespace cc
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_content_layer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698