mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 1226 changes:
Mac: Add off-screen rendering support (issue #518). - Build with the 10.7 SDK (set GYP_DEFINES='mac_sdk=10.7') to include Retina support in the cefclient OSR example. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1453@1227 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -19,6 +19,7 @@ class BackingStoreOSR : public content::BackingStore {
|
||||
}
|
||||
|
||||
// BackingStore implementation.
|
||||
virtual size_t MemorySize() OVERRIDE;
|
||||
virtual void PaintToBackingStore(
|
||||
content::RenderProcessHost* process,
|
||||
TransportDIB::Id bitmap,
|
||||
@@ -33,17 +34,22 @@ class BackingStoreOSR : public content::BackingStore {
|
||||
const gfx::Rect& clip_rect,
|
||||
const gfx::Size& view_size) OVERRIDE;
|
||||
|
||||
void ScaleFactorChanged(float scale_factor);
|
||||
|
||||
const void* getPixels() const;
|
||||
|
||||
private:
|
||||
// Can be instantiated only within CefRenderWidgetHostViewOSR.
|
||||
friend class CefRenderWidgetHostViewOSR;
|
||||
|
||||
explicit BackingStoreOSR(content::RenderWidgetHost* widget,
|
||||
const gfx::Size& size);
|
||||
const gfx::Size& size, float scale_factor);
|
||||
virtual ~BackingStoreOSR() {}
|
||||
|
||||
SkDevice device_;
|
||||
SkCanvas canvas_;
|
||||
scoped_ptr<SkDevice> device_;
|
||||
scoped_ptr<SkCanvas> canvas_;
|
||||
|
||||
float device_scale_factor_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BackingStoreOSR);
|
||||
};
|
||||
|
Reference in New Issue
Block a user