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

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

Issue 1511583002: Client Side Speed Index Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class PLATFORM_EXPORT GraphicsLayerClient { 61 class PLATFORM_EXPORT GraphicsLayerClient {
62 public: 62 public:
63 virtual ~GraphicsLayerClient() {} 63 virtual ~GraphicsLayerClient() {}
64 64
65 // Callback for when compositor animation started. 65 // Callback for when compositor animation started.
66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { } 66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { }
67 67
68 virtual void notifyFirstPaint() { } 68 virtual void notifyFirstPaint() { }
69 virtual void notifyFirstTextPaint() { } 69 virtual void notifyFirstTextPaint() { }
70 virtual void notifyFirstImagePaint() { } 70 virtual void notifyFirstImagePaint() { }
71 virtual void notifyPaintInvalidation(const IntRect* visualRect, int paintCou nt) {}
71 72
72 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre viousInterestRect) const = 0; 73 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre viousInterestRect) const = 0;
73 virtual bool needsRepaint() const { return true; } 74 virtual bool needsRepaint() const { return true; }
74 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& interestRect) const = 0; 75 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& interestRect) const = 0;
75 76
76 virtual bool isTrackingPaintInvalidations() const { return false; } 77 virtual bool isTrackingPaintInvalidations() const { return false; }
77 78
78 virtual String debugName(const GraphicsLayer*) const = 0; 79 virtual String debugName(const GraphicsLayer*) const = 0;
79 80
80 #if ENABLE(ASSERT) 81 #if ENABLE(ASSERT)
81 // CompositedLayerMapping overrides this to verify that it is not 82 // CompositedLayerMapping overrides this to verify that it is not
82 // currently painting contents. An ASSERT fails, if it is. 83 // currently painting contents. An ASSERT fails, if it is.
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 blink 91 } // namespace blink
91 92
92 #endif // GraphicsLayerClient_h 93 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp ('k') | third_party/WebKit/Source/web/WebPerformance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698