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

Unified Diff: ui/gfx/compositor/compositor_win.cc

Issue 7770002: gfx::Compositor: SchedulePaint. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 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 | « ui/gfx/compositor/compositor_gl.cc ('k') | views/aura_desktop/aura_desktop_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/compositor_win.cc
diff --git a/ui/gfx/compositor/compositor_win.cc b/ui/gfx/compositor/compositor_win.cc
index 3c0a2ff8663ec89b3ede2e7f4aeae47dd3e0509d..ae145a9733eda35617dfd56299afefde4462302b 100644
--- a/ui/gfx/compositor/compositor_win.cc
+++ b/ui/gfx/compositor/compositor_win.cc
@@ -86,7 +86,8 @@ class ViewTexture : public Texture {
// D3D 10 Compositor implementation.
class CompositorWin : public Compositor {
public:
- CompositorWin(gfx::AcceleratedWidget widget,
+ CompositorWin(CompositorDelegate* delegate,
+ gfx::AcceleratedWidget widget,
const gfx::Size& size);
void Init();
@@ -104,7 +105,6 @@ class CompositorWin : public Compositor {
virtual void NotifyStart() OVERRIDE;
virtual void NotifyEnd() OVERRIDE;
virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
- virtual void SchedulePaint() OVERRIDE;
protected:
virtual void OnWidgetSizeChanged() OVERRIDE;
@@ -321,9 +321,10 @@ void ViewTexture::CreateVertexBufferForRegion(const gfx::Rect& bounds) {
vertex_buffer_.Receive()));
}
-CompositorWin::CompositorWin(gfx::AcceleratedWidget widget,
+CompositorWin::CompositorWin(CompositorDelegate* delegate,
+ gfx::AcceleratedWidget widget,
const gfx::Size& size)
- : Compositor(size),
+ : Compositor(delegate, size),
host_(widget),
technique_(NULL) {
}
@@ -499,12 +500,6 @@ void CompositorWin::Blur(const gfx::Rect& bounds) {
#endif
}
-void CompositorWin::SchedulePaint() {
- RECT bounds;
- GetClientRect(host_, &bounds);
- InvalidateRect(host_, &bounds, FALSE);
-}
-
void CompositorWin::OnWidgetSizeChanged() {
dest_render_target_view_ = NULL;
depth_stencil_buffer_ = NULL;
@@ -796,9 +791,10 @@ ID3D10Buffer* CompositorWin::CreateVertexBufferForRegion(
} // namespace
// static
-Compositor* Compositor::Create(gfx::AcceleratedWidget widget,
+Compositor* Compositor::Create(CompositorDelegate* delegate,
+ gfx::AcceleratedWidget widget,
const gfx::Size& size) {
- CompositorWin* compositor = new CompositorWin(widget, size);
+ CompositorWin* compositor = new CompositorWin(delegate, widget, size);
compositor->Init();
return compositor;
}
« no previous file with comments | « ui/gfx/compositor/compositor_gl.cc ('k') | views/aura_desktop/aura_desktop_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698