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

Unified Diff: cc/output/software_output_device.h

Issue 57883007: Adding support for VSyncProvider to the software drawing path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Compositor constructor call Created 7 years, 1 month 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 | « no previous file | cc/output/software_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/software_output_device.h
diff --git a/cc/output/software_output_device.h b/cc/output/software_output_device.h
index 9e2de88b04869416b57413717644f6c611c43fd1..4ecf1fedd8e8bb4f2a0b557275453dc4bf3c8b13 100644
--- a/cc/output/software_output_device.h
+++ b/cc/output/software_output_device.h
@@ -6,6 +6,7 @@
#define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
#include "base/basictypes.h"
+#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "skia/ext/refptr.h"
// TODO(robertphillips): change this to "class SkBaseDevice;"
@@ -17,6 +18,10 @@
class SkBitmap;
class SkCanvas;
+namespace gfx {
+class VSyncProvider;
+}
+
namespace cc {
class SoftwareFrameData;
@@ -65,11 +70,16 @@ class CC_EXPORT SoftwareOutputDevice {
// displayed.
virtual void ReclaimSoftwareFrame(unsigned id);
+ // VSyncProvider used to update the timer used to schedule draws with the
+ // hardware vsync. Return NULL if a provider doesn't exist.
+ virtual gfx::VSyncProvider* GetVSyncProvider();
+
protected:
gfx::Size viewport_size_;
gfx::Rect damage_rect_;
skia::RefPtr<SkBaseDevice> device_;
skia::RefPtr<SkCanvas> canvas_;
+ scoped_ptr<gfx::VSyncProvider> vsync_provider_;
private:
DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
« no previous file with comments | « no previous file | cc/output/software_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698