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

Unified Diff: ui/compositor/layer.h

Issue 1057873004: Pass a ui::PaintContext from ui::Layer to layer delegates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layer-paintcontext: mac Created 5 years, 9 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 | « ui/aura_extra/image_window_delegate.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index ab4151f8647079b075a948ce88e564d5f00801e8..3dbd1733b0b2982eacc194383e25f1dcc12a441e 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -362,11 +362,6 @@ class COMPOSITOR_EXPORT Layer
void SetForceRenderSurface(bool force);
bool force_render_surface() const { return force_render_surface_; }
- // TODO(danakj): Plumb this to the LayerDelegate::OnPaintLayer instead of
- // providing it here. For more win, use the full damage region instead of a
- // bounding rect.
- gfx::Rect PaintRect() const;
-
// LayerClient
scoped_refptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo()
override;
@@ -534,9 +529,6 @@ class COMPOSITOR_EXPORT Layer
// or SetTextureMailbox was called.
gfx::Size frame_size_in_dip_;
- bool inside_paint_;
- gfx::Rect paint_rect_;
-
DISALLOW_COPY_AND_ASSIGN(Layer);
};
« no previous file with comments | « ui/aura_extra/image_window_delegate.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698