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

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: adding the rendering part Created 7 years, 3 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // opaque means that we know the layer contents have no alpha 311 // opaque means that we know the layer contents have no alpha
312 bool contentsOpaque() const { return m_contentsOpaque; } 312 bool contentsOpaque() const { return m_contentsOpaque; }
313 void setContentsOpaque(bool); 313 void setContentsOpaque(bool);
314 314
315 bool backfaceVisibility() const { return m_backfaceVisibility; } 315 bool backfaceVisibility() const { return m_backfaceVisibility; }
316 void setBackfaceVisibility(bool visible); 316 void setBackfaceVisibility(bool visible);
317 317
318 float opacity() const { return m_opacity; } 318 float opacity() const { return m_opacity; }
319 void setOpacity(float); 319 void setOpacity(float);
320 320
321 BlendMode blendMode() const { return m_blendMode; }
322 void setBlendMode(BlendMode);
323
324 bool isIsolatedGroupRoot() const { return m_isIsolatedGroupRoot; }
325 void setIsIsolatedGroupRoot(bool);
326
321 const FilterOperations& filters() const { return m_filters; } 327 const FilterOperations& filters() const { return m_filters; }
322 328
323 // Returns true if filter can be rendered by the compositor 329 // Returns true if filter can be rendered by the compositor
324 bool setFilters(const FilterOperations&); 330 bool setFilters(const FilterOperations&);
325 void setBackgroundFilters(const FilterOperations&); 331 void setBackgroundFilters(const FilterOperations&);
326 332
327 // Some GraphicsLayers paint only the foreground or the background content 333 // Some GraphicsLayers paint only the foreground or the background content
328 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } 334 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; }
329 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; } 335 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase = phase; }
330 336
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 FloatSize m_size; 493 FloatSize m_size;
488 FloatPoint m_boundsOrigin; 494 FloatPoint m_boundsOrigin;
489 495
490 TransformationMatrix m_transform; 496 TransformationMatrix m_transform;
491 TransformationMatrix m_childrenTransform; 497 TransformationMatrix m_childrenTransform;
492 498
493 Color m_backgroundColor; 499 Color m_backgroundColor;
494 float m_opacity; 500 float m_opacity;
495 float m_zPosition; 501 float m_zPosition;
496 502
503 BlendMode m_blendMode;
504 bool m_isIsolatedGroupRoot;
505
497 FilterOperations m_filters; 506 FilterOperations m_filters;
498 507
499 bool m_contentsOpaque : 1; 508 bool m_contentsOpaque : 1;
500 bool m_preserves3D: 1; 509 bool m_preserves3D: 1;
501 bool m_backfaceVisibility : 1; 510 bool m_backfaceVisibility : 1;
502 bool m_masksToBounds : 1; 511 bool m_masksToBounds : 1;
503 bool m_drawsContent : 1; 512 bool m_drawsContent : 1;
504 bool m_contentsVisible : 1; 513 bool m_contentsVisible : 1;
505 514
506 GraphicsLayerPaintingPhase m_paintingPhase; 515 GraphicsLayerPaintingPhase m_paintingPhase;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 558
550 559
551 } // namespace WebCore 560 } // namespace WebCore
552 561
553 #ifndef NDEBUG 562 #ifndef NDEBUG
554 // Outside the WebCore namespace for ease of invocation from gdb. 563 // Outside the WebCore namespace for ease of invocation from gdb.
555 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 564 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
556 #endif 565 #endif
557 566
558 #endif // GraphicsLayer_h 567 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | public/platform/WebBlendMode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698