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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.h

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 class FloatRect; 61 class FloatRect;
62 class GraphicsLayerFactory; 62 class GraphicsLayerFactory;
63 class GraphicsLayerFactoryChromium; 63 class GraphicsLayerFactoryChromium;
64 class Image; 64 class Image;
65 class LinkHighlight; 65 class LinkHighlight;
66 class JSONObject; 66 class JSONObject;
67 class PaintController; 67 class PaintController;
68 class ScrollableArea; 68 class ScrollableArea;
69 class WebCompositorAnimation; 69 class WebCompositorAnimation;
70 class WebFilterOperations;
70 class WebLayer; 71 class WebLayer;
71 72
72 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector; 73 typedef Vector<GraphicsLayer*, 64> GraphicsLayerVector;
73 74
74 // GraphicsLayer is an abstraction for a rendering surface with backing store, 75 // GraphicsLayer is an abstraction for a rendering surface with backing store,
75 // which may have associated transformation and animations. 76 // which may have associated transformation and animations.
76 77
77 class PLATFORM_EXPORT GraphicsLayer : public WebCompositorAnimationDelegate, pub lic WebLayerScrollClient, public cc::LayerClient, public DisplayItemClient { 78 class PLATFORM_EXPORT GraphicsLayer : public WebCompositorAnimationDelegate, pub lic WebLayerScrollClient, public cc::LayerClient, public DisplayItemClient {
78 WTF_MAKE_NONCOPYABLE(GraphicsLayer); USING_FAST_MALLOC(GraphicsLayer); 79 WTF_MAKE_NONCOPYABLE(GraphicsLayer); USING_FAST_MALLOC(GraphicsLayer);
79 public: 80 public:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 bool backfaceVisibility() const { return m_backfaceVisibility; } 169 bool backfaceVisibility() const { return m_backfaceVisibility; }
169 void setBackfaceVisibility(bool visible); 170 void setBackfaceVisibility(bool visible);
170 171
171 float opacity() const { return m_opacity; } 172 float opacity() const { return m_opacity; }
172 void setOpacity(float); 173 void setOpacity(float);
173 174
174 void setBlendMode(WebBlendMode); 175 void setBlendMode(WebBlendMode);
175 void setScrollBlocksOn(WebScrollBlocksOn); 176 void setScrollBlocksOn(WebScrollBlocksOn);
176 void setIsRootForIsolatedGroup(bool); 177 void setIsRootForIsolatedGroup(bool);
177 178
179 void setContentsLayerColorTransform(PassRefPtr<SkColorFilter>);
178 void setFilters(const FilterOperations&); 180 void setFilters(const FilterOperations&);
179 void setBackdropFilters(const FilterOperations&); 181 void setBackdropFilters(const FilterOperations&);
180 182
181 void setFilterQuality(SkFilterQuality); 183 void setFilterQuality(SkFilterQuality);
182 184
183 // Some GraphicsLayers paint only the foreground or the background content 185 // Some GraphicsLayers paint only the foreground or the background content
184 void setPaintingPhase(GraphicsLayerPaintingPhase); 186 void setPaintingPhase(GraphicsLayerPaintingPhase);
185 187
186 void setNeedsDisplay(); 188 void setNeedsDisplay();
187 // Mark the given rect (in layer coords) as needing display. Never goes deep . 189 // Mark the given rect (in layer coords) as needing display. Never goes deep .
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 }; 386 };
385 387
386 } // namespace blink 388 } // namespace blink
387 389
388 #ifndef NDEBUG 390 #ifndef NDEBUG
389 // Outside the blink namespace for ease of invocation from gdb. 391 // Outside the blink namespace for ease of invocation from gdb.
390 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 392 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
391 #endif 393 #endif
392 394
393 #endif // GraphicsLayer_h 395 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698