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

Side by Side Diff: Source/core/css/MediaValuesCached.h

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 years, 4 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 | « Source/core/css/MediaQueryExp.h ('k') | Source/core/css/RemoteFontFaceSource.h » ('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 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 MediaValuesCached_h 5 #ifndef MediaValuesCached_h
6 #define MediaValuesCached_h 6 #define MediaValuesCached_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/css/MediaValues.h" 9 #include "core/css/MediaValues.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CORE_EXPORT MediaValuesCached final : public MediaValues { 13 class CORE_EXPORT MediaValuesCached final : public MediaValues {
14 public: 14 public:
15 struct MediaValuesCachedData { 15 struct MediaValuesCachedData {
16 DISALLOW_ALLOCATION();
16 // Members variables must be thread safe, since they're copied to the pa rser thread 17 // Members variables must be thread safe, since they're copied to the pa rser thread
17 int viewportWidth; 18 int viewportWidth;
18 int viewportHeight; 19 int viewportHeight;
19 int deviceWidth; 20 int deviceWidth;
20 int deviceHeight; 21 int deviceHeight;
21 float devicePixelRatio; 22 float devicePixelRatio;
22 int colorBitsPerComponent; 23 int colorBitsPerComponent;
23 int monochromeBitsPerComponent; 24 int monochromeBitsPerComponent;
24 PointerType primaryPointerType; 25 PointerType primaryPointerType;
25 int availablePointerTypes; 26 int availablePointerTypes;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 MediaValuesCached(); 87 MediaValuesCached();
87 MediaValuesCached(LocalFrame*); 88 MediaValuesCached(LocalFrame*);
88 MediaValuesCached(const MediaValuesCachedData&); 89 MediaValuesCached(const MediaValuesCachedData&);
89 90
90 MediaValuesCachedData m_data; 91 MediaValuesCachedData m_data;
91 }; 92 };
92 93
93 } // namespace 94 } // namespace
94 95
95 #endif // MediaValuesCached_h 96 #endif // MediaValuesCached_h
OLDNEW
« no previous file with comments | « Source/core/css/MediaQueryExp.h ('k') | Source/core/css/RemoteFontFaceSource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698