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

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

Issue 17859003: Allow DrawingBuffer to present to a bitmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « public/platform/WebExternalBitmap.h ('k') | public/platform/WebGraphicsContext3D.h » ('j') | 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) 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 14 matching lines...) Expand all
25 25
26 #ifndef WebExternalTextureLayerClient_h 26 #ifndef WebExternalTextureLayerClient_h
27 #define WebExternalTextureLayerClient_h 27 #define WebExternalTextureLayerClient_h
28 28
29 #include "WebCommon.h" 29 #include "WebCommon.h"
30 #include "WebSize.h" 30 #include "WebSize.h"
31 31
32 namespace WebKit { 32 namespace WebKit {
33 33
34 class WebGraphicsContext3D; 34 class WebGraphicsContext3D;
35 class WebExternalBitmap;
35 struct WebExternalTextureMailbox; 36 struct WebExternalTextureMailbox;
36 37
37 class WebTextureUpdater { 38 class WebTextureUpdater {
38 public: 39 public:
39 virtual void appendCopy(unsigned sourceTexture, unsigned destinationTexture, WebSize) = 0; 40 virtual void appendCopy(unsigned sourceTexture, unsigned destinationTexture, WebSize) = 0;
40 41
41 protected: 42 protected:
42 virtual ~WebTextureUpdater() { } 43 virtual ~WebTextureUpdater() { }
43 }; 44 };
44 45
45 class WebExternalTextureLayerClient { 46 class WebExternalTextureLayerClient {
46 public: 47 public:
47 virtual unsigned prepareTexture(WebTextureUpdater&) = 0; 48 virtual unsigned prepareTexture(WebTextureUpdater&) = 0;
48 virtual WebGraphicsContext3D* context() = 0; 49 virtual WebGraphicsContext3D* context() = 0;
49 50
50 // Returns true and provides a mailbox if a new frame is available. 51 // Returns true and provides a mailbox if a new frame is available. If the W ebExternalBitmap
51 // Returns false if no new data is available and the old mailbox is to be re used. 52 // isn't 0, then it should also be filled in with the contents of this frame .
52 virtual bool prepareMailbox(WebExternalTextureMailbox*) = 0; 53 // Returns false if no new data is available and the old mailbox and bitmap are to be reused.
54 virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap* = 0) = 0;
53 55
54 // Notifies the client when a mailbox is no longer in use by the compositor and provides 56 // Notifies the client when a mailbox is no longer in use by the compositor and provides
55 // a sync point to wait on before the mailbox could be consumes again by the client. 57 // a sync point to wait on before the mailbox could be consumes again by the client.
56 virtual void mailboxReleased(const WebExternalTextureMailbox&) = 0; 58 virtual void mailboxReleased(const WebExternalTextureMailbox&) = 0;
57 59
58 protected: 60 protected:
59 virtual ~WebExternalTextureLayerClient() { } 61 virtual ~WebExternalTextureLayerClient() { }
60 }; 62 };
61 63
62 } // namespace WebKit 64 } // namespace WebKit
63 65
64 #endif // WebExternalTextureLayerClient_h 66 #endif // WebExternalTextureLayerClient_h
OLDNEW
« no previous file with comments | « public/platform/WebExternalBitmap.h ('k') | public/platform/WebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698