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

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: Renamed a variable 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 FloatSize m_size; 364 FloatSize m_size;
359 FloatPoint m_boundsOrigin; 365 FloatPoint m_boundsOrigin;
360 366
361 TransformationMatrix m_transform; 367 TransformationMatrix m_transform;
362 TransformationMatrix m_childrenTransform; 368 TransformationMatrix m_childrenTransform;
363 369
364 Color m_backgroundColor; 370 Color m_backgroundColor;
365 float m_opacity; 371 float m_opacity;
366 float m_zPosition; 372 float m_zPosition;
367 373
374 BlendMode m_blendMode;
375
368 FilterOperations m_filters; 376 FilterOperations m_filters;
369 377
370 bool m_contentsOpaque : 1; 378 bool m_contentsOpaque : 1;
371 bool m_preserves3D: 1; 379 bool m_preserves3D: 1;
372 bool m_backfaceVisibility : 1; 380 bool m_backfaceVisibility : 1;
373 bool m_masksToBounds : 1; 381 bool m_masksToBounds : 1;
374 bool m_drawsContent : 1; 382 bool m_drawsContent : 1;
375 bool m_contentsVisible : 1; 383 bool m_contentsVisible : 1;
384 bool m_isRootForIsolatedGroup : 1;
376 385
377 bool m_hasScrollParent : 1; 386 bool m_hasScrollParent : 1;
378 bool m_hasClipParent : 1; 387 bool m_hasClipParent : 1;
379 388
380 GraphicsLayerPaintingPhase m_paintingPhase; 389 GraphicsLayerPaintingPhase m_paintingPhase;
381 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents 390 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat ion of layer contents
382 391
383 Vector<GraphicsLayer*> m_children; 392 Vector<GraphicsLayer*> m_children;
384 GraphicsLayer* m_parent; 393 GraphicsLayer* m_parent;
385 394
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 426
418 427
419 } // namespace WebCore 428 } // namespace WebCore
420 429
421 #ifndef NDEBUG 430 #ifndef NDEBUG
422 // Outside the WebCore namespace for ease of invocation from gdb. 431 // Outside the WebCore namespace for ease of invocation from gdb.
423 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 432 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
424 #endif 433 #endif
425 434
426 #endif // GraphicsLayer_h 435 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698