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

Side by Side Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleImageValue.h

Issue 2849463005: Refactor ImageBuffer to make OffscreenCanvas match HTMLCanvasElement (Closed)
Patch Set: x Created 3 years, 7 months 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 | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CSSStyleImageValue_h 5 #ifndef CSSStyleImageValue_h
6 #define CSSStyleImageValue_h 6 #define CSSStyleImageValue_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/CSSImageValue.h" 9 #include "core/css/CSSImageValue.h"
10 #include "core/css/CSSImageValue.h" 10 #include "core/css/CSSImageValue.h"
(...skipping 23 matching lines...) Expand all
34 int SourceWidth() final; 34 int SourceWidth() final;
35 int SourceHeight() final; 35 int SourceHeight() final;
36 bool WouldTaintOrigin( 36 bool WouldTaintOrigin(
37 SecurityOrigin* destination_security_origin) const final { 37 SecurityOrigin* destination_security_origin) const final {
38 return true; 38 return true;
39 } 39 }
40 FloatSize ElementSize(const FloatSize& default_object_size) const final; 40 FloatSize ElementSize(const FloatSize& default_object_size) const final;
41 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, 41 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*,
42 AccelerationHint, 42 AccelerationHint,
43 SnapshotReason, 43 SnapshotReason,
44 const FloatSize&) const final { 44 const FloatSize&) final {
45 return GetImage(); 45 return GetImage();
46 } 46 }
47 bool IsAccelerated() const override; 47 bool IsAccelerated() const override;
48 48
49 DEFINE_INLINE_VIRTUAL_TRACE() { 49 DEFINE_INLINE_VIRTUAL_TRACE() {
50 visitor->Trace(image_value_); 50 visitor->Trace(image_value_);
51 CSSResourceValue::Trace(visitor); 51 CSSResourceValue::Trace(visitor);
52 } 52 }
53 53
54 protected: 54 protected:
(...skipping 22 matching lines...) Expand all
77 77
78 private: 78 private:
79 PassRefPtr<Image> GetImage() const; 79 PassRefPtr<Image> GetImage() const;
80 80
81 Member<const CSSImageValue> image_value_; 81 Member<const CSSImageValue> image_value_;
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // CSSResourceValue_h 86 #endif // CSSResourceValue_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/Editor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698