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

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

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/pepper/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" 9 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h"
10 #include "ppapi/shared_impl/resource.h" 10 #include "ppapi/shared_impl/resource.h"
11 11
12 namespace content { 12 namespace content {
13 class PlatformContext3D; 13 class PlatformContext3D;
14 14
15 class PPB_Graphics3D_Impl : public ppapi::PPB_Graphics3D_Shared { 15 class PPB_Graphics3D_Impl : public ppapi::PPB_Graphics3D_Shared {
16 public: 16 public:
17 static PP_Resource Create(PP_Instance instance, 17 static PP_Resource Create(PP_Instance instance,
18 PP_Resource share_context, 18 PP_Resource share_context,
19 const int32_t* attrib_list); 19 const int32_t* attrib_list);
20 static PP_Resource CreateRaw(PP_Instance instance, 20 static PP_Resource CreateRaw(PP_Instance instance,
21 PP_Resource share_context, 21 PP_Resource share_context,
22 const int32_t* attrib_list); 22 const int32_t* attrib_list);
23 23
24 // PPB_Graphics3D_API trusted implementation. 24 // PPB_Graphics3D_API trusted implementation.
25 virtual PP_Bool SetGetBuffer(int32_t transfer_buffer_id) OVERRIDE; 25 virtual PP_Bool SetGetBuffer(int32_t transfer_buffer_id) OVERRIDE;
26 virtual gpu::CommandBuffer::State GetState() OVERRIDE;
27 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, 26 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
28 int32* id) OVERRIDE; 27 int32* id) OVERRIDE;
29 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; 28 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
30 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; 29 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
31 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, 30 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
32 int32_t end) OVERRIDE; 31 int32_t end) OVERRIDE;
33 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, 32 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
34 int32_t end) 33 int32_t end)
35 OVERRIDE; 34 OVERRIDE;
36 virtual uint32_t InsertSyncPoint() OVERRIDE; 35 virtual uint32_t InsertSyncPoint() OVERRIDE;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // The 3D Context. Responsible for providing the command buffer. 75 // The 3D Context. Responsible for providing the command buffer.
77 scoped_ptr<PlatformContext3D> platform_context_; 76 scoped_ptr<PlatformContext3D> platform_context_;
78 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 77 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 79 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
81 }; 80 };
82 81
83 } // namespace content 82 } // namespace content
84 83
85 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 84 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/pepper/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698