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

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

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address reviewer comments Created 9 years, 4 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_stub.cc ('k') | ui/gfx/interpolated_transform.h » ('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 346fd13ce13f334ea6d0d1f92f5fdc2ab3da7558..75d5f129481f37bd6bd24c601d2e1641bfcc5cdf 100644
--- a/ui/gfx/compositor/compositor_win.cc
+++ b/ui/gfx/compositor/compositor_win.cc
@@ -101,12 +101,12 @@ class CompositorWin : public Compositor {
// Compositor:
virtual Texture* CreateTexture() OVERRIDE;
- virtual void NotifyStart() OVERRIDE;
- virtual void NotifyEnd() OVERRIDE;
virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
virtual void SchedulePaint() OVERRIDE;
protected:
+ virtual void OnNotifyStart() OVERRIDE;
+ virtual void OnNotifyEnd() OVERRIDE;
virtual void OnWidgetSizeChanged() OVERRIDE;
private:
@@ -388,7 +388,7 @@ Texture* CompositorWin::CreateTexture() {
return new ViewTexture(this, device_.get(), fx_.get());
}
-void CompositorWin::NotifyStart() {
+void CompositorWin::OnNotifyStart() {
ID3D10RenderTargetView* target_view = main_render_target_view_.get();
device_->OMSetRenderTargets(1, &target_view, depth_stencil_view_.get());
@@ -407,7 +407,7 @@ void CompositorWin::NotifyStart() {
device_->IASetPrimitiveTopology(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
}
-void CompositorWin::NotifyEnd() {
+void CompositorWin::OnNotifyEnd() {
// Copy from main_render_target_view_| (where all are rendering was done) back
// to |dest_render_target_view_|.
ID3D10RenderTargetView* target_view = dest_render_target_view_.get();
« no previous file with comments | « ui/gfx/compositor/compositor_stub.cc ('k') | ui/gfx/interpolated_transform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698