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

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

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated CompositorMutableStateTest. Created 4 years, 6 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 16 matching lines...) Expand all
27 #ifndef GraphicsLayer_h 27 #ifndef GraphicsLayer_h
28 #define GraphicsLayer_h 28 #define GraphicsLayer_h
29 29
30 #include "cc/layers/layer_client.h" 30 #include "cc/layers/layer_client.h"
31 #include "platform/PlatformExport.h" 31 #include "platform/PlatformExport.h"
32 #include "platform/geometry/FloatPoint.h" 32 #include "platform/geometry/FloatPoint.h"
33 #include "platform/geometry/FloatPoint3D.h" 33 #include "platform/geometry/FloatPoint3D.h"
34 #include "platform/geometry/FloatSize.h" 34 #include "platform/geometry/FloatSize.h"
35 #include "platform/geometry/IntRect.h" 35 #include "platform/geometry/IntRect.h"
36 #include "platform/graphics/Color.h" 36 #include "platform/graphics/Color.h"
37 #include "platform/graphics/CompositorElementId.h"
37 #include "platform/graphics/ContentLayerDelegate.h" 38 #include "platform/graphics/ContentLayerDelegate.h"
38 #include "platform/graphics/GraphicsContext.h" 39 #include "platform/graphics/GraphicsContext.h"
39 #include "platform/graphics/GraphicsLayerClient.h" 40 #include "platform/graphics/GraphicsLayerClient.h"
40 #include "platform/graphics/GraphicsLayerDebugInfo.h" 41 #include "platform/graphics/GraphicsLayerDebugInfo.h"
41 #include "platform/graphics/ImageOrientation.h" 42 #include "platform/graphics/ImageOrientation.h"
42 #include "platform/graphics/PaintInvalidationReason.h" 43 #include "platform/graphics/PaintInvalidationReason.h"
43 #include "platform/graphics/filters/FilterOperations.h" 44 #include "platform/graphics/filters/FilterOperations.h"
44 #include "platform/graphics/paint/CachedDisplayItem.h" 45 #include "platform/graphics/paint/CachedDisplayItem.h"
45 #include "platform/graphics/paint/DisplayItemClient.h" 46 #include "platform/graphics/paint/DisplayItemClient.h"
46 #include "platform/graphics/paint/PaintController.h" 47 #include "platform/graphics/paint/PaintController.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void didScroll() override; 237 void didScroll() override;
237 238
238 // cc::LayerClient implementation. 239 // cc::LayerClient implementation.
239 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c c::Layer*) override; 240 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> TakeDebugInfo(c c::Layer*) override;
240 241
241 PaintController& getPaintController(); 242 PaintController& getPaintController();
242 243
243 // Exposed for tests. 244 // Exposed for tests.
244 WebLayer* contentsLayer() const { return m_contentsLayer; } 245 WebLayer* contentsLayer() const { return m_contentsLayer; }
245 246
246 void setElementId(uint64_t); 247 void setElementId(const CompositorElementId&);
247 void setCompositorMutableProperties(uint32_t); 248 void setCompositorMutableProperties(uint32_t);
248 249
249 static void setDrawDebugRedFillForTesting(bool); 250 static void setDrawDebugRedFillForTesting(bool);
250 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont entLayerDelegate.get(); } 251 ContentLayerDelegate* contentLayerDelegateForTesting() const { return m_cont entLayerDelegate.get(); }
251 252
252 // DisplayItemClient methods 253 // DisplayItemClient methods
253 String debugName() const final { return m_client->debugName(this); } 254 String debugName() const final { return m_client->debugName(this); }
254 LayoutRect visualRect() const override; 255 LayoutRect visualRect() const override;
255 256
256 void setHasWillChangeTransformHint(bool); 257 void setHasWillChangeTransformHint(bool);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 }; 369 };
369 370
370 } // namespace blink 371 } // namespace blink
371 372
372 #ifndef NDEBUG 373 #ifndef NDEBUG
373 // Outside the blink namespace for ease of invocation from gdb. 374 // Outside the blink namespace for ease of invocation from gdb.
374 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 375 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
375 #endif 376 #endif
376 377
377 #endif // GraphicsLayer_h 378 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698