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

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

Issue 205193006: gpu: Remove map_image field from gpu::Capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/services/gles2/command_buffer_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 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/gles2_context.h" 5 #include "mojo/gles2/gles2_context.h"
6 6
7 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 7 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
8 #include "gpu/command_buffer/client/gles2_implementation.h" 8 #include "gpu/command_buffer/client/gles2_implementation.h"
9 #include "gpu/command_buffer/client/transfer_buffer.h" 9 #include "gpu/command_buffer/client/transfer_buffer.h"
10 #include "mojo/public/gles2/gles2.h" 10 #include "mojo/public/gles2/gles2.h"
(...skipping 27 matching lines...) Expand all
38 gles2_helper_.reset(new gpu::gles2::GLES2CmdHelper(&command_buffer_)); 38 gles2_helper_.reset(new gpu::gles2::GLES2CmdHelper(&command_buffer_));
39 if (!gles2_helper_->Initialize(kDefaultCommandBufferSize)) 39 if (!gles2_helper_->Initialize(kDefaultCommandBufferSize))
40 return false; 40 return false;
41 gles2_helper_->SetAutomaticFlushes(false); 41 gles2_helper_->SetAutomaticFlushes(false);
42 transfer_buffer_.reset(new gpu::TransferBuffer(gles2_helper_.get())); 42 transfer_buffer_.reset(new gpu::TransferBuffer(gles2_helper_.get()));
43 implementation_.reset( 43 implementation_.reset(
44 new gpu::gles2::GLES2Implementation(gles2_helper_.get(), 44 new gpu::gles2::GLES2Implementation(gles2_helper_.get(),
45 NULL, 45 NULL,
46 transfer_buffer_.get(), 46 transfer_buffer_.get(),
47 true, 47 true,
48 &command_buffer_)); 48 &command_buffer_,
49 gpu::Capabilities()));
danakj 2014/03/24 16:42:08 Can we get at the decoder caps here? Or transfer t
reveman 2014/03/24 17:00:17 transferred the TODO
49 return implementation_->Initialize(kDefaultStartTransferBufferSize, 50 return implementation_->Initialize(kDefaultStartTransferBufferSize,
50 kDefaultMinTransferBufferSize, 51 kDefaultMinTransferBufferSize,
51 kDefaultMaxTransferBufferSize, 52 kDefaultMaxTransferBufferSize,
52 gpu::gles2::GLES2Implementation::kNoLimit); 53 gpu::gles2::GLES2Implementation::kNoLimit);
53 } 54 }
54 55
55 void GLES2Context::RequestAnimationFrames() { 56 void GLES2Context::RequestAnimationFrames() {
56 command_buffer_.RequestAnimationFrames(); 57 command_buffer_.RequestAnimationFrames();
57 } 58 }
58 59
59 void GLES2Context::CancelAnimationFrames() { 60 void GLES2Context::CancelAnimationFrames() {
60 command_buffer_.CancelAnimationFrames(); 61 command_buffer_.CancelAnimationFrames();
61 } 62 }
62 63
63 void GLES2Context::ContextLost() { lost_callback_(closure_); } 64 void GLES2Context::ContextLost() { lost_callback_(closure_); }
64 65
65 void GLES2Context::DrawAnimationFrame() { animation_callback_(closure_); } 66 void GLES2Context::DrawAnimationFrame() { animation_callback_(closure_); }
66 67
67 } // namespace gles2 68 } // namespace gles2
68 } // namespace mojo 69 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.cc ('k') | mojo/services/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698