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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 342483007: Removed ManagedMemoryStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 // A class to emulate GLES2 over command buffers. 5 // A class to emulate GLES2 over command buffers.
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 8
9 #include <GLES2/gl2ext.h> 9 #include <GLES2/gl2ext.h>
10 #include <GLES2/gl2extchromium.h> 10 #include <GLES2/gl2extchromium.h>
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 void GLES2Implementation::SetSurfaceVisible(bool visible) { 379 void GLES2Implementation::SetSurfaceVisible(bool visible) {
380 TRACE_EVENT1( 380 TRACE_EVENT1(
381 "gpu", "GLES2Implementation::SetSurfaceVisible", "visible", visible); 381 "gpu", "GLES2Implementation::SetSurfaceVisible", "visible", visible);
382 // TODO(piman): This probably should be ShallowFlushCHROMIUM(). 382 // TODO(piman): This probably should be ShallowFlushCHROMIUM().
383 Flush(); 383 Flush();
384 gpu_control_->SetSurfaceVisible(visible); 384 gpu_control_->SetSurfaceVisible(visible);
385 if (!visible) 385 if (!visible)
386 FreeEverything(); 386 FreeEverything();
387 } 387 }
388 388
389 void GLES2Implementation::SendManagedMemoryStats(
390 const ManagedMemoryStats& stats) {
391 gpu_control_->SendManagedMemoryStats(stats);
392 }
393
394 void GLES2Implementation::WaitForCmd() { 389 void GLES2Implementation::WaitForCmd() {
395 TRACE_EVENT0("gpu", "GLES2::WaitForCmd"); 390 TRACE_EVENT0("gpu", "GLES2::WaitForCmd");
396 helper_->CommandBufferHelper::Finish(); 391 helper_->CommandBufferHelper::Finish();
397 } 392 }
398 393
399 bool GLES2Implementation::IsExtensionAvailable(const char* ext) { 394 bool GLES2Implementation::IsExtensionAvailable(const char* ext) {
400 const char* extensions = 395 const char* extensions =
401 reinterpret_cast<const char*>(GetStringHelper(GL_EXTENSIONS)); 396 reinterpret_cast<const char*>(GetStringHelper(GL_EXTENSIONS));
402 if (!extensions) 397 if (!extensions)
403 return false; 398 return false;
(...skipping 3768 matching lines...) Expand 10 before | Expand all | Expand 10 after
4172 return true; 4167 return true;
4173 } 4168 }
4174 4169
4175 // Include the auto-generated part of this file. We split this because it means 4170 // Include the auto-generated part of this file. We split this because it means
4176 // we can easily edit the non-auto generated parts right here in this file 4171 // we can easily edit the non-auto generated parts right here in this file
4177 // instead of having to edit some template or the code generator. 4172 // instead of having to edit some template or the code generator.
4178 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h" 4173 #include "gpu/command_buffer/client/gles2_implementation_impl_autogen.h"
4179 4174
4180 } // namespace gles2 4175 } // namespace gles2
4181 } // namespace gpu 4176 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.h ('k') | gpu/command_buffer/client/gpu_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698