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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 668663006: Standardize usage of virtual/override/final in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_context.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 // 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 #include "mojo/gles2/command_buffer_client_impl.h" 5 #include "mojo/gles2/command_buffer_client_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 CommandBufferStatePtr WaitForProgress() { 59 CommandBufferStatePtr WaitForProgress() {
60 if (!WaitForIncomingMethodCall()) 60 if (!WaitForIncomingMethodCall())
61 return CommandBufferStatePtr(); 61 return CommandBufferStatePtr();
62 return command_buffer_state_.Pass(); 62 return command_buffer_state_.Pass();
63 } 63 }
64 64
65 private: 65 private:
66 // CommandBufferSyncClient methods: 66 // CommandBufferSyncClient methods:
67 virtual void DidInitialize(bool success) override { 67 void DidInitialize(bool success) override {
68 initialized_successfully_ = success; 68 initialized_successfully_ = success;
69 } 69 }
70 virtual void DidMakeProgress(CommandBufferStatePtr state) override { 70 void DidMakeProgress(CommandBufferStatePtr state) override {
71 command_buffer_state_ = state.Pass(); 71 command_buffer_state_ = state.Pass();
72 } 72 }
73 73
74 bool initialized_successfully_; 74 bool initialized_successfully_;
75 CommandBufferStatePtr command_buffer_state_; 75 CommandBufferStatePtr command_buffer_state_;
76 }; 76 };
77 77
78 CommandBufferClientImpl::CommandBufferClientImpl( 78 CommandBufferClientImpl::CommandBufferClientImpl(
79 CommandBufferDelegate* delegate, 79 CommandBufferDelegate* delegate,
80 const MojoAsyncWaiter* async_waiter, 80 const MojoAsyncWaiter* async_waiter,
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 DidDestroy(); 285 DidDestroy();
286 return; 286 return;
287 } 287 }
288 288
289 if (state->generation - last_state_.generation < 0x80000000U) 289 if (state->generation - last_state_.generation < 0x80000000U)
290 last_state_ = state.To<State>(); 290 last_state_ = state.To<State>();
291 } 291 }
292 292
293 } // namespace gles2 293 } // namespace gles2
294 } // namespace mojo 294 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698