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

Side by Side Diff: public/platform/WebLayerClient.h

Issue 135473002: Include debug name in GraphicsLayerDebugInfo. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 11 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/platform/graphics/GraphicsLayerDebugInfo.cpp ('k') | no next file » | 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 26 matching lines...) Expand all
37 37
38 class WebGraphicsLayerDebugInfo; 38 class WebGraphicsLayerDebugInfo;
39 39
40 class BLINK_PLATFORM_EXPORT WebLayerClient { 40 class BLINK_PLATFORM_EXPORT WebLayerClient {
41 public: 41 public:
42 virtual WebString debugName(WebLayer*) = 0; 42 virtual WebString debugName(WebLayer*) = 0;
43 43
44 // Returns a pointer to a debug info object, if one has been computed. 44 // Returns a pointer to a debug info object, if one has been computed.
45 // If not, returns 0. If the returned pointer is non-zero, the caller takes 45 // If not, returns 0. If the returned pointer is non-zero, the caller takes
46 // ownership of the pointer. 46 // ownership of the pointer.
47 // FIXME: delete this once cc migrates to takeDebugInfoFor.
47 virtual WebGraphicsLayerDebugInfo* takeDebugInfo() = 0; 48 virtual WebGraphicsLayerDebugInfo* takeDebugInfo() = 0;
48 49
50 // Similar to takeDebugInfo, but returns WebLayer-specific information
51 // (only the debug name for now).
52 virtual WebGraphicsLayerDebugInfo* takeDebugInfoFor(WebLayer*) = 0;
53
49 protected: 54 protected:
50 virtual ~WebLayerClient() { } 55 virtual ~WebLayerClient() { }
51 }; 56 };
52 57
53 } // namespace blink 58 } // namespace blink
54 59
55 #endif // WebLayerClient_h 60 #endif // WebLayerClient_h
56 61
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayerDebugInfo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698