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

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

Issue 791753002: SkCanvas::NewRaster is deprecated, create a surface instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | cc/output/software_output_device.cc » ('j') | cc/output/software_output_device.cc » ('J')
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_SOFTWARE_OUTPUT_DEVICE_H_ 5 #ifndef CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ 6 #define CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
12 #include "third_party/skia/include/core/SkSurface.h"
bungeman-skia 2014/12/09 21:39:54 It looks like SkCanvas was previously just forward
reed1 2014/12/09 21:48:33 The actual type is needed for the RefPtr<>
12 #include "ui/gfx/geometry/rect.h" 13 #include "ui/gfx/geometry/rect.h"
13 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
14 #include "ui/gfx/geometry/vector2d.h" 15 #include "ui/gfx/geometry/vector2d.h"
15 16
16 class SkBitmap; 17 class SkBitmap;
17 class SkCanvas; 18 class SkCanvas;
18 19
19 namespace gfx { 20 namespace gfx {
20 class VSyncProvider; 21 class VSyncProvider;
21 } 22 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void ReclaimSoftwareFrame(unsigned id); 69 virtual void ReclaimSoftwareFrame(unsigned id);
69 70
70 // VSyncProvider used to update the timer used to schedule draws with the 71 // VSyncProvider used to update the timer used to schedule draws with the
71 // hardware vsync. Return NULL if a provider doesn't exist. 72 // hardware vsync. Return NULL if a provider doesn't exist.
72 virtual gfx::VSyncProvider* GetVSyncProvider(); 73 virtual gfx::VSyncProvider* GetVSyncProvider();
73 74
74 protected: 75 protected:
75 gfx::Size viewport_pixel_size_; 76 gfx::Size viewport_pixel_size_;
76 float scale_factor_; 77 float scale_factor_;
77 gfx::Rect damage_rect_; 78 gfx::Rect damage_rect_;
78 skia::RefPtr<SkCanvas> canvas_; 79 skia::RefPtr<SkSurface> surface_;
79 scoped_ptr<gfx::VSyncProvider> vsync_provider_; 80 scoped_ptr<gfx::VSyncProvider> vsync_provider_;
80 81
81 private: 82 private:
82 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice); 83 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDevice);
83 }; 84 };
84 85
85 } // namespace cc 86 } // namespace cc
86 87
87 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_ 88 #endif // CC_OUTPUT_SOFTWARE_OUTPUT_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/software_output_device.cc » ('j') | cc/output/software_output_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698