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

Unified Diff: cc/test/fake_content_layer_client.cc

Issue 565043002: cc: Remove the opaque rect return-parameter from ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contentlayerclientopaque: build Created 6 years, 3 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/test/fake_content_layer_client.h ('k') | cc/test/fake_picture_layer_tiling_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.cc
diff --git a/cc/test/fake_content_layer_client.cc b/cc/test/fake_content_layer_client.cc
index 9f75d8920bb69d52c49eb5be432425a9fb2592ac..143f484348462cb0246855d91de048115ec90cb5 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -9,8 +9,8 @@
namespace cc {
-FakeContentLayerClient::FakeContentLayerClient()
- : paint_all_opaque_(false), last_canvas_(NULL) {}
+FakeContentLayerClient::FakeContentLayerClient() : last_canvas_(NULL) {
+}
FakeContentLayerClient::~FakeContentLayerClient() {
}
@@ -18,14 +18,10 @@ FakeContentLayerClient::~FakeContentLayerClient() {
void FakeContentLayerClient::PaintContents(
SkCanvas* canvas,
const gfx::Rect& paint_rect,
- gfx::RectF* opaque_rect,
ContentLayerClient::GraphicsContextStatus gc_status) {
last_canvas_ = canvas;
last_context_status_ = gc_status;
- if (paint_all_opaque_)
- *opaque_rect = paint_rect;
-
canvas->clipRect(gfx::RectToSkRect(paint_rect));
for (RectPaintVector::const_iterator it = draw_rects_.begin();
it != draw_rects_.end(); ++it) {
« no previous file with comments | « cc/test/fake_content_layer_client.h ('k') | cc/test/fake_picture_layer_tiling_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698