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

Side by Side Diff: cc/test/pixel_test_output_surface.cc

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: comments Created 4 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
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/test/test_in_process_context_provider.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "cc/test/pixel_test_output_surface.h" 5 #include "cc/test/pixel_test_output_surface.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 #include "third_party/khronos/GLES2/gl2.h"
10 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
11 12
12 namespace cc { 13 namespace cc {
13 14
14 PixelTestOutputSurface::PixelTestOutputSurface( 15 PixelTestOutputSurface::PixelTestOutputSurface(
15 scoped_refptr<ContextProvider> context_provider, 16 scoped_refptr<ContextProvider> context_provider,
16 scoped_refptr<ContextProvider> worker_context_provider, 17 scoped_refptr<ContextProvider> worker_context_provider,
17 bool flipped_output_surface) 18 bool flipped_output_surface)
18 : OutputSurface(std::move(context_provider), 19 : OutputSurface(std::move(context_provider),
19 std::move(worker_context_provider), 20 std::move(worker_context_provider),
(...skipping 27 matching lines...) Expand all
47 48
48 bool PixelTestOutputSurface::HasExternalStencilTest() const { 49 bool PixelTestOutputSurface::HasExternalStencilTest() const {
49 return external_stencil_test_; 50 return external_stencil_test_;
50 } 51 }
51 52
52 void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) { 53 void PixelTestOutputSurface::SwapBuffers(CompositorFrame* frame) {
53 PostSwapBuffersComplete(); 54 PostSwapBuffersComplete();
54 client_->DidSwapBuffers(); 55 client_->DidSwapBuffers();
55 } 56 }
56 57
58 uint32_t PixelTestOutputSurface::GetFramebufferCopyTextureFormat() {
59 // This format will work if the |context_provider| has an RGB or RGBA
60 // framebuffer. For now assume tests do not want/care about alpha in
61 // the root render pass.
62 return GL_RGB;
63 }
64
57 } // namespace cc 65 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/pixel_test_output_surface.h ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698