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

Side by Side Diff: content/browser/aura/software_output_device_ozone.h

Issue 57883007: Adding support for VSyncProvider to the software drawing path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added unittests 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_ 5 #ifndef CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_
6 #define CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_ 6 #define CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_
7 7
8 #include "cc/output/software_output_device.h" 8 #include "cc/output/software_output_device.h"
9 #include "ui/gfx/native_widget_types.h"
9 10
10 namespace ui { 11 namespace ui {
11 class Compositor; 12 class Compositor;
12 } 13 }
13 14
14 namespace content { 15 namespace content {
15 16
16 // Ozone implementation which relies on software rendering. Ozone will present 17 // Ozone implementation which relies on software rendering. Ozone will present
17 // an accelerated widget as a SkCanvas. SoftwareOutputDevice will then use the 18 // an accelerated widget as a SkCanvas. SoftwareOutputDevice will then use the
18 // Ozone provided canvas to draw. 19 // Ozone provided canvas to draw.
19 class SoftwareOutputDeviceOzone : public cc::SoftwareOutputDevice { 20 class SoftwareOutputDeviceOzone : public cc::SoftwareOutputDevice {
20 public: 21 public:
21 explicit SoftwareOutputDeviceOzone(ui::Compositor* compositor); 22 explicit SoftwareOutputDeviceOzone(ui::Compositor* compositor);
22 virtual ~SoftwareOutputDeviceOzone(); 23 virtual ~SoftwareOutputDeviceOzone();
23 24
24 virtual void Resize(gfx::Size viewport_size) OVERRIDE; 25 virtual void Resize(gfx::Size viewport_size) OVERRIDE;
25 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect) OVERRIDE; 26 virtual SkCanvas* BeginPaint(gfx::Rect damage_rect) OVERRIDE;
26 virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE; 27 virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE;
27 28
29 virtual gfx::VSyncProvider* GetVSyncProvider() OVERRIDE;
30
28 private: 31 private:
29 ui::Compositor* compositor_; 32 ui::Compositor* compositor_;
30 33
34 gfx::AcceleratedWidget realized_widget_;
piman 2013/11/05 23:32:27 new field needs initialization
35
31 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceOzone); 36 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceOzone);
32 }; 37 };
33 38
34 } // namespace content 39 } // namespace content
35 40
36 #endif // CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_ 41 #endif // CONTENT_BROWSER_AURA_SOFTWARE_OUTPUT_DEVICE_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698