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

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

Issue 17398002: Add tests and settings plumbing for accelerated fixed root background (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Flagging test as NeedsRebaseline for mac. Created 7 years, 5 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
« no previous file with comments | « Source/core/page/Settings.in ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 AnimatedPropertyWebkitTransform, 50 AnimatedPropertyWebkitTransform,
51 AnimatedPropertyOpacity, 51 AnimatedPropertyOpacity,
52 AnimatedPropertyBackgroundColor, 52 AnimatedPropertyBackgroundColor,
53 AnimatedPropertyWebkitFilter 53 AnimatedPropertyWebkitFilter
54 }; 54 };
55 55
56 enum { 56 enum {
57 LayerTreeNormal = 0, 57 LayerTreeNormal = 0,
58 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses. 58 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses.
59 LayerTreeIncludesRepaintRects = 1 << 1, 59 LayerTreeIncludesRepaintRects = 1 << 1,
60 LayerTreeIncludesPaintingPhases = 1 << 2 60 LayerTreeIncludesPaintingPhases = 1 << 2,
61 LayerTreeIncludesRootLayer = 1 << 3
61 }; 62 };
62 typedef unsigned LayerTreeFlags; 63 typedef unsigned LayerTreeFlags;
63 64
64 class GraphicsLayerClient { 65 class GraphicsLayerClient {
65 public: 66 public:
66 virtual ~GraphicsLayerClient() {} 67 virtual ~GraphicsLayerClient() {}
67 68
68 // Callback for when hardware-accelerated animation started. 69 // Callback for when hardware-accelerated animation started.
69 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0; 70 virtual void notifyAnimationStarted(const GraphicsLayer*, double time) = 0;
70 71
(...skipping 12 matching lines...) Expand all
83 // This is executed in GraphicsLayer construction and destruction 84 // This is executed in GraphicsLayer construction and destruction
84 // to verify that we don't create or destroy GraphicsLayers 85 // to verify that we don't create or destroy GraphicsLayers
85 // while painting. 86 // while painting.
86 virtual void verifyNotPainting() { } 87 virtual void verifyNotPainting() { }
87 #endif 88 #endif
88 }; 89 };
89 90
90 } // namespace WebCore 91 } // namespace WebCore
91 92
92 #endif // GraphicsLayerClient_h 93 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « Source/core/page/Settings.in ('k') | Source/core/rendering/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698