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

Side by Side Diff: Source/core/paint/TransparencyDisplayItem.h

Issue 744163002: Enable fast/images with slimming paint (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove bad merge in virtual test suites Created 6 years, 1 month 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
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.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 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 TransparencyDisplayItem_h 5 #ifndef TransparencyDisplayItem_h
6 #define TransparencyDisplayItem_h 6 #define TransparencyDisplayItem_h
7 7
8 #include "core/paint/ViewDisplayList.h" 8 #include "core/paint/ViewDisplayList.h"
9 #include "platform/geometry/LayoutRect.h" 9 #include "platform/geometry/LayoutRect.h"
10 #include "public/platform/WebBlendMode.h" 10 #include "public/platform/WebBlendMode.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 // FIXME: Move this file to TransparencyRecorder
chrishtr 2014/11/20 20:01:24 There is no TransparencyRecorder in this patchset.
leviw_travelin_and_unemployed 2014/11/20 20:09:36 False! It's right below this :p
chrishtr 2014/11/20 20:10:47 Ah. LOL.
15
14 class BeginTransparencyDisplayItem : public DisplayItem { 16 class BeginTransparencyDisplayItem : public DisplayItem {
15 public: 17 public:
16 BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, const WebBlendMode& blendMode, const float opacity) 18 BeginTransparencyDisplayItem(const RenderObject* renderer, Type type, const LayoutRect& clipRect, const WebBlendMode& blendMode, const float opacity)
17 : DisplayItem(renderer, type) 19 : DisplayItem(renderer, type)
18 , m_clipRect(clipRect) 20 , m_clipRect(clipRect)
19 , m_blendMode(blendMode) 21 , m_blendMode(blendMode)
20 , m_opacity(opacity) { } 22 , m_opacity(opacity) { }
21 virtual void replay(GraphicsContext*) override; 23 virtual void replay(GraphicsContext*) override;
22 24
23 private: 25 private:
(...skipping 13 matching lines...) Expand all
37 EndTransparencyDisplayItem(const RenderObject* renderer, Type type) 39 EndTransparencyDisplayItem(const RenderObject* renderer, Type type)
38 : DisplayItem(renderer, type) { } 40 : DisplayItem(renderer, type) { }
39 virtual void replay(GraphicsContext*) override; 41 virtual void replay(GraphicsContext*) override;
40 42
41 private: 43 private:
42 #ifndef NDEBUG 44 #ifndef NDEBUG
43 virtual WTF::String asDebugString() const override; 45 virtual WTF::String asDebugString() const override;
44 #endif 46 #endif
45 }; 47 };
46 48
49 class TransparencyRecorder {
50 public:
51 explicit TransparencyRecorder(GraphicsContext*, const RenderObject*, Display Item::Type, const LayoutRect& clipRect, const WebBlendMode&, const float opacity );
52
53 ~TransparencyRecorder();
54
55 private:
56 const RenderObject* m_renderer;
57 const DisplayItem::Type m_type;
58 GraphicsContext* m_graphicsContext;
59 };
60
47 } // namespace blink 61 } // namespace blink
48 62
49 #endif // TransparencyDisplayItem_h 63 #endif // TransparencyDisplayItem_h
OLDNEW
« no previous file with comments | « Source/core/paint/LayerPainter.cpp ('k') | Source/core/paint/TransparencyDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698