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

Side by Side Diff: Source/platform/graphics/Canvas2DLayerBridge.h

Issue 429643002: Add non-blocking frame rate limiting logic to display list 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: applied corrections 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt ernalBitmap*) OVERRIDE; 62 virtual bool prepareMailbox(blink::WebExternalTextureMailbox*, blink::WebExt ernalBitmap*) OVERRIDE;
63 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&, bool l ostResource) OVERRIDE; 63 virtual void mailboxReleased(const blink::WebExternalTextureMailbox&, bool l ostResource) OVERRIDE;
64 64
65 // SkDeferredCanvas::NotificationClient implementation 65 // SkDeferredCanvas::NotificationClient implementation
66 virtual void prepareForDraw() OVERRIDE; 66 virtual void prepareForDraw() OVERRIDE;
67 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE; 67 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE;
68 virtual void flushedDrawCommands() OVERRIDE; 68 virtual void flushedDrawCommands() OVERRIDE;
69 virtual void skippedPendingDrawCommands() OVERRIDE; 69 virtual void skippedPendingDrawCommands() OVERRIDE;
70 70
71 // ImageBufferSurface implementation 71 // ImageBufferSurface implementation
72 void willUse(); 72 void didDraw();
73 void willReadback(); 73 void willReadback();
74 SkCanvas* canvas() const { return m_canvas.get(); } 74 SkCanvas* canvas() const { return m_canvas.get(); }
75 bool checkSurfaceValid(); 75 bool checkSurfaceValid();
76 bool restoreSurface(); 76 bool restoreSurface();
77 blink::WebLayer* layer() const; 77 blink::WebLayer* layer() const;
78 Platform3DObject getBackingTexture(); 78 Platform3DObject getBackingTexture();
79 bool isAccelerated() const { return true; } 79 bool isAccelerated() const { return true; }
80 void setIsHidden(bool); 80 void setIsHidden(bool);
81 void setImageBuffer(ImageBuffer* imageBuffer) { m_imageBuffer = imageBuffer; } 81 void setImageBuffer(ImageBuffer* imageBuffer) { m_imageBuffer = imageBuffer; }
82 82
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 }; 137 };
138 MailboxInfo* createMailboxInfo(); 138 MailboxInfo* createMailboxInfo();
139 MailboxInfo* releasedMailboxInfo(); 139 MailboxInfo* releasedMailboxInfo();
140 140
141 uint32_t m_lastImageId; 141 uint32_t m_lastImageId;
142 Vector<MailboxInfo> m_mailboxes; 142 Vector<MailboxInfo> m_mailboxes;
143 int m_releasedMailboxInfoIndex; 143 int m_releasedMailboxInfoIndex;
144 }; 144 };
145 } 145 }
146 #endif 146 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/Canvas2DImageBufferSurface.h ('k') | Source/platform/graphics/Canvas2DLayerBridge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698