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

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

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed reviewer feedback, keeping the forwarding include Created 7 years, 7 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 | Annotate | Revision Log
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 25 matching lines...) Expand all
36 #include "core/platform/graphics/PlatformLayer.h" 36 #include "core/platform/graphics/PlatformLayer.h"
37 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate .h" 37 #include "core/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate .h"
38 #include "core/platform/graphics/filters/FilterOperations.h" 38 #include "core/platform/graphics/filters/FilterOperations.h"
39 #include "core/platform/graphics/transforms/TransformOperations.h" 39 #include "core/platform/graphics/transforms/TransformOperations.h"
40 #include "core/platform/graphics/transforms/TransformationMatrix.h" 40 #include "core/platform/graphics/transforms/TransformationMatrix.h"
41 41
42 #include "wtf/HashMap.h" 42 #include "wtf/HashMap.h"
43 #include "wtf/OwnPtr.h" 43 #include "wtf/OwnPtr.h"
44 #include "wtf/PassOwnPtr.h" 44 #include "wtf/PassOwnPtr.h"
45 45
46 #include <public/WebCompositingReasons.h>
46 #include <public/WebContentLayer.h> 47 #include <public/WebContentLayer.h>
47 #include <public/WebImageLayer.h> 48 #include <public/WebImageLayer.h>
48 #include <public/WebLayer.h> 49 #include <public/WebLayer.h>
49 #include <public/WebSolidColorLayer.h> 50 #include <public/WebSolidColorLayer.h>
50 51
51 enum LayerTreeAsTextBehaviorFlags { 52 enum LayerTreeAsTextBehaviorFlags {
52 LayerTreeAsTextBehaviorNormal = 0, 53 LayerTreeAsTextBehaviorNormal = 0,
53 LayerTreeAsTextDebug = 1 << 0, // Dump extra debugging info like layer addre sses. 54 LayerTreeAsTextDebug = 1 << 0, // Dump extra debugging info like layer addre sses.
54 LayerTreeAsTextIncludeVisibleRects = 1 << 1, 55 LayerTreeAsTextIncludeVisibleRects = 1 << 1,
55 LayerTreeAsTextIncludeRepaintRects = 1 << 2, 56 LayerTreeAsTextIncludeRepaintRects = 1 << 2,
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 226
226 GraphicsLayerClient* client() const { return m_client; } 227 GraphicsLayerClient* client() const { return m_client; }
227 228
228 // Layer name. Only used to identify layers in debug output 229 // Layer name. Only used to identify layers in debug output
229 const String& name() const { return m_name; } 230 const String& name() const { return m_name; }
230 void setName(const String&); 231 void setName(const String&);
231 232
232 // Layer ID from platform-specific layer. Only used to identify layers in th e compositor for debugging purposes. 233 // Layer ID from platform-specific layer. Only used to identify layers in th e compositor for debugging purposes.
233 int debugID() const; 234 int debugID() const;
234 235
236 void setCompositingReasons(WebKit::WebCompositingReasons);
237
235 GraphicsLayer* parent() const { return m_parent; }; 238 GraphicsLayer* parent() const { return m_parent; };
236 void setParent(GraphicsLayer*); // Internal use only. 239 void setParent(GraphicsLayer*); // Internal use only.
237 240
238 // Returns true if the layer has the given layer as an ancestor (excluding s elf). 241 // Returns true if the layer has the given layer as an ancestor (excluding s elf).
239 bool hasAncestor(GraphicsLayer*) const; 242 bool hasAncestor(GraphicsLayer*) const;
240 243
241 const Vector<GraphicsLayer*>& children() const { return m_children; } 244 const Vector<GraphicsLayer*>& children() const { return m_children; }
242 // Returns true if the child list changed. 245 // Returns true if the child list changed.
243 bool setChildren(const Vector<GraphicsLayer*>&); 246 bool setChildren(const Vector<GraphicsLayer*>&);
244 247
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 579
577 580
578 } // namespace WebCore 581 } // namespace WebCore
579 582
580 #ifndef NDEBUG 583 #ifndef NDEBUG
581 // Outside the WebCore namespace for ease of invocation from gdb. 584 // Outside the WebCore namespace for ease of invocation from gdb.
582 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 585 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
583 #endif 586 #endif
584 587
585 #endif // GraphicsLayer_h 588 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Source/core/platform/graphics/GraphicsLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698