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

Side by Side Diff: content/renderer/pepper/ppb_graphics_3d_impl.h

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 PP_Bool SetGetBuffer(int32_t transfer_buffer_id) override; 44 PP_Bool SetGetBuffer(int32_t transfer_buffer_id) override;
45 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, 45 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
46 int32_t* id) override; 46 int32_t* id) override;
47 PP_Bool DestroyTransferBuffer(int32_t id) override; 47 PP_Bool DestroyTransferBuffer(int32_t id) override;
48 PP_Bool Flush(int32_t put_offset) override; 48 PP_Bool Flush(int32_t put_offset) override;
49 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, 49 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
50 int32_t end) override; 50 int32_t end) override;
51 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, 51 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
52 int32_t end) override; 52 int32_t end) override;
53 void EnsureWorkVisible() override; 53 void EnsureWorkVisible() override;
54 void EnsureWorkVisibleAsync() override;
54 void TakeFrontBuffer() override; 55 void TakeFrontBuffer() override;
55 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, 56 void ReturnFrontBuffer(const gpu::Mailbox& mailbox,
56 const gpu::SyncToken& sync_token, 57 const gpu::SyncToken& sync_token,
57 bool is_lost); 58 bool is_lost);
58 59
59 // Binds/unbinds the graphics of this context with the associated instance. 60 // Binds/unbinds the graphics of this context with the associated instance.
60 // Returns true if binding/unbinding is successful. 61 // Returns true if binding/unbinding is successful.
61 bool BindToInstance(bool bind); 62 bool BindToInstance(bool bind);
62 63
63 // Returns true if the backing texture is always opaque. 64 // Returns true if the backing texture is always opaque.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_; 121 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_;
121 122
122 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 123 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 125 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
125 }; 126 };
126 127
127 } // namespace content 128 } // namespace content
128 129
129 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 130 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698