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

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

Issue 13947015: Landing https://codereview.chromium.org/13638008/ on behalf of alexst: Blink API to allow mailbox u… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static PassOwnPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D> context, const IntSize& size, ThreadMode threading, unsigned textureId) 52 static PassOwnPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D> context, const IntSize& size, ThreadMode threading, unsigned textureId)
53 { 53 {
54 return adoptPtr(new Canvas2DLayerBridge(context, size, threading, textur eId)); 54 return adoptPtr(new Canvas2DLayerBridge(context, size, threading, textur eId));
55 } 55 }
56 56
57 virtual ~Canvas2DLayerBridge(); 57 virtual ~Canvas2DLayerBridge();
58 58
59 // WebKit::WebExternalTextureLayerClient implementation. 59 // WebKit::WebExternalTextureLayerClient implementation.
60 virtual unsigned prepareTexture(WebKit::WebTextureUpdater&) OVERRIDE; 60 virtual unsigned prepareTexture(WebKit::WebTextureUpdater&) OVERRIDE;
61 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; 61 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE;
62 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*) OVERRIDE { r eturn false; }
63 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR IDE { }
62 64
63 // SkDeferredCanvas::NotificationClient implementation 65 // SkDeferredCanvas::NotificationClient implementation
64 virtual void prepareForDraw() OVERRIDE; 66 virtual void prepareForDraw() OVERRIDE;
65 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE; 67 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE;
66 virtual void flushedDrawCommands() OVERRIDE; 68 virtual void flushedDrawCommands() OVERRIDE;
67 virtual void skippedPendingDrawCommands() OVERRIDE; 69 virtual void skippedPendingDrawCommands() OVERRIDE;
68 70
69 // Methods used by Canvas2DLayerManager 71 // Methods used by Canvas2DLayerManager
70 virtual size_t freeMemoryIfPossible(size_t); // virtual for mocking 72 virtual size_t freeMemoryIfPossible(size_t); // virtual for mocking
71 virtual void flush(); // virtual for mocking 73 virtual void flush(); // virtual for mocking
(...skipping 20 matching lines...) Expand all
92 int m_framesPending; 94 int m_framesPending;
93 95
94 friend class WTF::DoublyLinkedListNode<Canvas2DLayerBridge>; 96 friend class WTF::DoublyLinkedListNode<Canvas2DLayerBridge>;
95 Canvas2DLayerBridge* m_next; 97 Canvas2DLayerBridge* m_next;
96 Canvas2DLayerBridge* m_prev; 98 Canvas2DLayerBridge* m_prev;
97 }; 99 };
98 100
99 } 101 }
100 102
101 #endif 103 #endif
OLDNEW
« no previous file with comments | « Source/Platform/chromium/public/WebExternalTextureMailbox.h ('k') | Source/WebCore/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698