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

Side by Side Diff: Source/platform/graphics/RecordingImageBufferSurface.h

Issue 799103002: Fix display list canvas not rendering correctly on high dpi displays (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: corrections 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 RecordingImageBufferSurface_h 5 #ifndef RecordingImageBufferSurface_h
6 #define RecordingImageBufferSurface_h 6 #define RecordingImageBufferSurface_h
7 7
8 #include "platform/graphics/ImageBufferSurface.h" 8 #include "platform/graphics/ImageBufferSurface.h"
9 #include "public/platform/WebThread.h" 9 #include "public/platform/WebThread.h"
10 #include "third_party/skia/include/core/SkCanvas.h" 10 #include "third_party/skia/include/core/SkCanvas.h"
(...skipping 25 matching lines...) Expand all
36 virtual SkCanvas* canvas() const override; 36 virtual SkCanvas* canvas() const override;
37 virtual PassRefPtr<SkPicture> getPicture() override; 37 virtual PassRefPtr<SkPicture> getPicture() override;
38 virtual void willDrawVideo() override; 38 virtual void willDrawVideo() override;
39 virtual bool isValid() const override { return true; } 39 virtual bool isValid() const override { return true; }
40 virtual void willAccessPixels() override; 40 virtual void willAccessPixels() override;
41 virtual void finalizeFrame(const FloatRect&) override; 41 virtual void finalizeFrame(const FloatRect&) override;
42 virtual void didClearCanvas() override; 42 virtual void didClearCanvas() override;
43 virtual void setImageBuffer(ImageBuffer*) override; 43 virtual void setImageBuffer(ImageBuffer*) override;
44 virtual PassRefPtr<SkImage> newImageSnapshot() const override; 44 virtual PassRefPtr<SkImage> newImageSnapshot() const override;
45 virtual bool needsClipTracking() const override { return !m_fallbackSurface; } 45 virtual bool needsClipTracking() const override { return !m_fallbackSurface; }
46 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe ct& srcRect, CompositeOperator, WebBlendMode, bool needsCopy) override;
46 47
47 // Passthroughs to fallback surface 48 // Passthroughs to fallback surface
48 virtual const SkBitmap& bitmap() override; 49 virtual const SkBitmap& bitmap() override;
49 virtual bool restore() override; 50 virtual bool restore() override;
50 virtual WebLayer* layer() const override; 51 virtual WebLayer* layer() const override;
51 virtual bool isAccelerated() const override; 52 virtual bool isAccelerated() const override;
52 virtual Platform3DObject getBackingTexture() const override; 53 virtual Platform3DObject getBackingTexture() const override;
53 virtual bool cachedBitmapEnabled() const override; 54 virtual bool cachedBitmapEnabled() const override;
54 virtual const SkBitmap& cachedBitmap() const override; 55 virtual const SkBitmap& cachedBitmap() const override;
55 virtual void invalidateCachedBitmap() override; 56 virtual void invalidateCachedBitmap() override;
(...skipping 11 matching lines...) Expand all
67 OwnPtr<ImageBufferSurface> m_fallbackSurface; 68 OwnPtr<ImageBufferSurface> m_fallbackSurface;
68 ImageBuffer* m_imageBuffer; 69 ImageBuffer* m_imageBuffer;
69 int m_initialSaveCount; 70 int m_initialSaveCount;
70 bool m_frameWasCleared; 71 bool m_frameWasCleared;
71 OwnPtr<RecordingImageBufferFallbackSurfaceFactory> m_fallbackFactory; 72 OwnPtr<RecordingImageBufferFallbackSurfaceFactory> m_fallbackFactory;
72 }; 73 };
73 74
74 } // namespace blink 75 } // namespace blink
75 76
76 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/ImageBufferSurface.cpp ('k') | Source/platform/graphics/RecordingImageBufferSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698