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

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

Issue 1189833005: Revert of Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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;
58 51
59 void DidLoseContext(); 52 void DidLoseContext();
60 void UpdateVSyncParameters(base::TimeTicks timebase, 53 void UpdateVSyncParameters(base::TimeTicks timebase,
61 base::TimeDelta interval); 54 base::TimeDelta interval);
62 55
63 void set_observer(CommandBufferImplObserver* observer) { 56 void set_observer(CommandBufferImplObserver* observer) {
64 observer_ = observer; 57 observer_ = observer;
65 } 58 }
66 59
67 private: 60 private:
(...skipping 14 matching lines...) Expand all
82 mojo::Binding<CommandBuffer> binding_; 75 mojo::Binding<CommandBuffer> binding_;
83 CommandBufferImplObserver* observer_; 76 CommandBufferImplObserver* observer_;
84 77
85 base::WeakPtrFactory<CommandBufferImpl> weak_factory_; 78 base::WeakPtrFactory<CommandBufferImpl> weak_factory_;
86 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 79 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
87 }; 80 };
88 81
89 } // namespace gles2 82 } // namespace gles2
90 83
91 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 84 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « components/view_manager/gles2/command_buffer_driver.cc ('k') | components/view_manager/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698