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

Side by Side Diff: cc/output/output_surface.h

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review tweaks. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/output/output_surface_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this. 8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this.
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 virtual void BindFramebuffer(); 85 virtual void BindFramebuffer();
86 86
87 virtual void PostSubBuffer(gfx::Rect rect); 87 virtual void PostSubBuffer(gfx::Rect rect);
88 virtual void SwapBuffers(); 88 virtual void SwapBuffers();
89 89
90 // Notifies frame-rate smoothness preference. If true, all non-critical 90 // Notifies frame-rate smoothness preference. If true, all non-critical
91 // processing should be stopped, or lowered in priority. 91 // processing should be stopped, or lowered in priority.
92 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} 92 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {}
93 93
94 // Requests a vsync notification from the output surface. The notification
95 // will be delivered by calling OutputSurfaceClient::DidVSync for all future
96 // vsync events until the callback is disabled.
97 virtual void EnableVSyncNotification(bool enable_vsync) {}
98
94 protected: 99 protected:
95 OutputSurfaceClient* client_; 100 OutputSurfaceClient* client_;
96 struct cc::OutputSurface::Capabilities capabilities_; 101 struct cc::OutputSurface::Capabilities capabilities_;
97 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; 102 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_;
98 scoped_ptr<cc::SoftwareOutputDevice> software_device_; 103 scoped_ptr<cc::SoftwareOutputDevice> software_device_;
99 bool has_gl_discard_backbuffer_; 104 bool has_gl_discard_backbuffer_;
100 105
101 private: 106 private:
102 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 107 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
103 }; 108 };
104 109
105 } // namespace cc 110 } // namespace cc
106 111
107 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 112 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698