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

Side by Side Diff: Source/platform/graphics/paint/DisplayItemCacheSkipper.h

Issue 1160763005: Don't cache reflection drawings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix win (which doesn't pack bool bitfields) Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DisplayItemCacheSkipper_h
6 #define DisplayItemCacheSkipper_h
7
8 #include "platform/RuntimeEnabledFeatures.h"
9 #include "platform/graphics/GraphicsContext.h"
10 #include "platform/graphics/paint/DisplayItemList.h"
11
12 namespace blink {
13
14 class DisplayItemCacheSkipper {
15 public:
16 DisplayItemCacheSkipper(GraphicsContext& context)
17 : m_context(context)
18 {
19 if (RuntimeEnabledFeatures::slimmingPaintEnabled())
20 context.displayItemList()->beginSkippingCache();
21 }
22 ~DisplayItemCacheSkipper()
23 {
24 if (RuntimeEnabledFeatures::slimmingPaintEnabled())
25 m_context.displayItemList()->endSkippingCache();
26 }
27
28 private:
29 GraphicsContext& m_context;
30 };
31
32 } // namespace blink
33
34 #endif // DisplayItemCacheSkipper_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.cpp ('k') | Source/platform/graphics/paint/DisplayItemList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698