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

Unified Diff: cc/layers/layer_client.h

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update only when needed Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/layer_client.h
diff --git a/cc/layers/layer_client.h b/cc/layers/layer_client.h
index 5a20b11f8f46f088c48f2edcd9cfd7de34a32b88..04a4bdefa0d03550ccd688ee8ef651b15ba6a95e 100644
--- a/cc/layers/layer_client.h
+++ b/cc/layers/layer_client.h
@@ -7,24 +7,26 @@
#include <string>
+#include "base/debug/trace_event_impl.h"
#include "base/memory/ref_counted.h"
#include "cc/base/cc_export.h"
-namespace base {
-namespace debug {
-class ConvertableToTraceFormat;
-}
-}
-
namespace cc {
+class CC_EXPORT LayerDebugInfo : public base::debug::ConvertableToTraceFormat {
+ public:
+ virtual bool IncludesFirstPaintInvalidation() const = 0;
+
+ protected:
+ virtual ~LayerDebugInfo() {}
+};
+
class CC_EXPORT LayerClient {
public:
// Returns a pointer to a debug info object, if one has been computed.
// If not, returns NULL. If the returned pointer is non-NULL, the caller takes
// ownership of the pointer.
- virtual scoped_refptr<base::debug::ConvertableToTraceFormat>
- TakeDebugInfo() = 0;
+ virtual scoped_refptr<LayerDebugInfo> TakeDebugInfo() = 0;
protected:
virtual ~LayerClient() {}

Powered by Google App Engine
This is Rietveld 408576698