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

Side by Side Diff: Source/core/platform/graphics/GraphicsLayer.h

Issue 23511004: mix-blend-mode implementation for accelerated layers - blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 7 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
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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // opaque means that we know the layer contents have no alpha 195 // opaque means that we know the layer contents have no alpha
196 bool contentsOpaque() const { return m_contentsOpaque; } 196 bool contentsOpaque() const { return m_contentsOpaque; }
197 void setContentsOpaque(bool); 197 void setContentsOpaque(bool);
198 198
199 bool backfaceVisibility() const { return m_backfaceVisibility; } 199 bool backfaceVisibility() const { return m_backfaceVisibility; }
200 void setBackfaceVisibility(bool visible); 200 void setBackfaceVisibility(bool visible);
201 201
202 float opacity() const { return m_opacity; } 202 float opacity() const { return m_opacity; }
203 void setOpacity(float); 203 void setOpacity(float);
204 204
205 BlendMode blendMode() const { return m_blendMode; }
206 void setBlendMode(BlendMode);
207
208 bool isRootForIsolatedGroup() const { return m_isRootForIsolatedGroup; }
209 void setIsRootForIsolatedGroup(bool);
210
205 const FilterOperations& filters() const { return m_filters; } 211 const FilterOperations& filters() const { return m_filters; }
206 212
207 // Returns true if filter can be rendered by the compositor 213 // Returns true if filter can be rendered by the compositor
208 bool setFilters(const FilterOperations&); 214 bool setFilters(const FilterOperations&);
209 void setBackgroundFilters(const FilterOperations&); 215 void setBackgroundFilters(const FilterOperations&);
210 216
211 // Some GraphicsLayers paint only the foreground or the background content 217 // Some GraphicsLayers paint only the foreground or the background content
212 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } 218 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; }
213 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; } 219 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; }
214 220
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 FloatSize m_size; 366 FloatSize m_size;
361 FloatPoint m_boundsOrigin; 367 FloatPoint m_boundsOrigin;
362 368
363 TransformationMatrix m_transform; 369 TransformationMatrix m_transform;
364 TransformationMatrix m_childrenTransform; 370 TransformationMatrix m_childrenTransform;
365 371
366 Color m_backgroundColor; 372 Color m_backgroundColor;
367 float m_opacity; 373 float m_opacity;
368 float m_zPosition; 374 float m_zPosition;
369 375
376 BlendMode m_blendMode;
377
370 FilterOperations m_filters; 378 FilterOperations m_filters;
371 379
372 bool m_contentsOpaque : 1; 380 bool m_contentsOpaque : 1;
373 bool m_preserves3D: 1; 381 bool m_preserves3D: 1;
374 bool m_backfaceVisibility : 1; 382 bool m_backfaceVisibility : 1;
375 bool m_masksToBounds : 1; 383 bool m_masksToBounds : 1;
376 bool m_drawsContent : 1; 384 bool m_drawsContent : 1;
377 bool m_contentsVisible : 1; 385 bool m_contentsVisible : 1;
386 bool m_isRootForIsolatedGroup : 1;
378 387
379 bool m_hasScrollParent : 1; 388 bool m_hasScrollParent : 1;
380 bool m_hasClipParent : 1; 389 bool m_hasClipParent : 1;
381 390
382 GraphicsLayerPaintingPhase m_paintingPhase; 391 GraphicsLayerPaintingPhase m_paintingPhase;
383 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents 392 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents
384 393
385 Vector<GraphicsLayer*> m_children; 394 Vector<GraphicsLayer*> m_children;
386 GraphicsLayer* m_parent; 395 GraphicsLayer* m_parent;
387 396
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 428
420 429
421 } // namespace WebCore 430 } // namespace WebCore
422 431
423 #ifndef NDEBUG 432 #ifndef NDEBUG
424 // Outside the WebCore namespace for ease of invocation from gdb. 433 // Outside the WebCore namespace for ease of invocation from gdb.
425 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 434 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
426 #endif 435 #endif
427 436
428 #endif // GraphicsLayer_h 437 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698