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

Side by Side Diff: components/view_manager/gles2/command_buffer_impl.h

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit warning Created 5 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 30 matching lines...) Expand all
41 void SetGetBuffer(int32_t buffer) override; 41 void SetGetBuffer(int32_t buffer) override;
42 void Flush(int32_t put_offset) override; 42 void Flush(int32_t put_offset) override;
43 void MakeProgress(int32_t last_get_offset) override; 43 void MakeProgress(int32_t last_get_offset) override;
44 void RegisterTransferBuffer(int32_t id, 44 void RegisterTransferBuffer(int32_t id,
45 mojo::ScopedSharedBufferHandle transfer_buffer, 45 mojo::ScopedSharedBufferHandle transfer_buffer,
46 uint32_t size) override; 46 uint32_t size) override;
47 void DestroyTransferBuffer(int32_t id) override; 47 void DestroyTransferBuffer(int32_t id) override;
48 void InsertSyncPoint(bool retire) override; 48 void InsertSyncPoint(bool retire) override;
49 void RetireSyncPoint(uint32_t sync_point) override; 49 void RetireSyncPoint(uint32_t sync_point) override;
50 void Echo(const mojo::Callback<void()>& callback) override; 50 void Echo(const mojo::Callback<void()>& callback) override;
51 void CreateImage(int32_t id,
52 mojo::ScopedHandle memory_handle,
53 int32_t type,
54 mojo::SizePtr size,
55 int32_t format,
56 int32_t internal_format) override;
57 void DestroyImage(int32_t id) override;
51 58
52 void DidLoseContext(); 59 void DidLoseContext();
53 void UpdateVSyncParameters(base::TimeTicks timebase, 60 void UpdateVSyncParameters(base::TimeTicks timebase,
54 base::TimeDelta interval); 61 base::TimeDelta interval);
55 62
56 void set_observer(CommandBufferImplObserver* observer) { 63 void set_observer(CommandBufferImplObserver* observer) {
57 observer_ = observer; 64 observer_ = observer;
58 } 65 }
59 66
60 private: 67 private:
(...skipping 14 matching lines...) Expand all
75 mojo::Binding<CommandBuffer> binding_; 82 mojo::Binding<CommandBuffer> binding_;
76 CommandBufferImplObserver* observer_; 83 CommandBufferImplObserver* observer_;
77 84
78 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; 85 base::WeakPtrFactory<CommandBufferImpl> weak_factory_;
79 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 86 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
80 }; 87 };
81 88
82 } // namespace gles2 89 } // namespace gles2
83 90
84 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 91 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698