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

Side by Side Diff: ui/gfx/compositor/compositor_gl.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moved screen rotation code under touch; use lock object to disable painting 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ 5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_
6 #define UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void NotifyStart() OVERRIDE; 73 virtual void NotifyStart() OVERRIDE;
74 virtual void NotifyEnd() OVERRIDE; 74 virtual void NotifyEnd() OVERRIDE;
75 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; 75 virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
76 virtual void SchedulePaint() OVERRIDE; 76 virtual void SchedulePaint() OVERRIDE;
77 virtual void OnWidgetSizeChanged(const gfx::Size& size) OVERRIDE; 77 virtual void OnWidgetSizeChanged(const gfx::Size& size) OVERRIDE;
78 78
79 // The GL context used for compositing. 79 // The GL context used for compositing.
80 scoped_refptr<gfx::GLSurface> gl_surface_; 80 scoped_refptr<gfx::GLSurface> gl_surface_;
81 scoped_refptr<gfx::GLContext> gl_context_; 81 scoped_refptr<gfx::GLContext> gl_context_;
82 82
83 // Used for implementation of SchedulePaint.
84 gfx::AcceleratedWidget widget_;
85
83 gfx::Size size_; 86 gfx::Size size_;
84 87
85 // Keep track of whether compositing has started or not. 88 // Keep track of whether compositing has started or not.
86 bool started_; 89 bool started_;
87 90
88 DISALLOW_COPY_AND_ASSIGN(CompositorGL); 91 DISALLOW_COPY_AND_ASSIGN(CompositorGL);
89 }; 92 };
90 93
91 } // namespace ui 94 } // namespace ui
92 95
93 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_ 96 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_GL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698